diff --git a/wire/core/PagesLoaderCache.php b/wire/core/PagesLoaderCache.php index 0cc6b526..811efbbf 100644 --- a/wire/core/PagesLoaderCache.php +++ b/wire/core/PagesLoaderCache.php @@ -91,6 +91,18 @@ class PagesLoaderCache extends Wire { return $page; } + /** + * Is given page ID in the cache? + * + * @param int page ID + * @return bool + * @since 3.0.243 + * + */ + public function hasCache($id) { + return isset($this->pageIdCache[$id]); + } + /** * Cache the given page. *