Located in file /wire/core/PagesLoaderCache.php
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the PagesLoaderCache
class also inherits all the methods and properties of: Wire.
Common
Name | Return | Summary | |
---|
PagesLoaderCache::cache() PagesLoaderCache::cache(Page $page) PagesLoaderCache::cache(Page $page) | (nothing) | Cache the given page. | |
PagesLoaderCache::cacheGroup() PagesLoaderCache::cacheGroup(Page $page, string $groupName) PagesLoaderCache::cacheGroup(Page $page, string $groupName) | (nothing) | Cache given page into a named group that it can be uncached with | |
PagesLoaderCache::getCache() PagesLoaderCache::getCache() PagesLoaderCache::getCache($id = null) | Page array null | Given a Page ID, return it if it's cached, or NULL of it's not. | |
PagesLoaderCache::getCacheStatus() PagesLoaderCache::getCacheStatus() PagesLoaderCache::getCacheStatus($verbose = null) | array string | Get cache status | |
PagesLoaderCache::getSelectorCache() PagesLoaderCache::getSelectorCache(string $selector, array $options) PagesLoaderCache::getSelectorCache(string $selector, array $options, bool $returnSelector = false) | array null string PageArray | Retrieve any cached page IDs for the given selector and options OR false if none found. | |
PagesLoaderCache::hasCache() PagesLoaderCache::hasCache($id) PagesLoaderCache::hasCache($id) | bool | Is given page ID in the cache? | |
PagesLoaderCache::selectorCache() PagesLoaderCache::selectorCache(string $selector, array $options, PageArray $pages) PagesLoaderCache::selectorCache(string $selector, array $options, PageArray $pages) | bool | Cache the given selector string and options with the given PageArray | |
PagesLoaderCache::uncache() PagesLoaderCache::uncache($page) PagesLoaderCache::uncache($page, array $options = []) | bool | Remove the given page from the cache. | |
PagesLoaderCache::uncacheAll() PagesLoaderCache::uncacheAll() PagesLoaderCache::uncacheAll($page = null, array $options = []) | int | Remove all pages from the cache | |
PagesLoaderCache::uncacheGroup() PagesLoaderCache::uncacheGroup(string $groupName) PagesLoaderCache::uncacheGroup(string $groupName, array $options = []) | int | Uncache pages that were cached with given group name | |
Additional methods and properties
In addition to the methods and properties above, PagesLoaderCache also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.244