$procache->static->addTestData() $procache->static->addTestData(string $action) $procache->static->addTestData(string $action, $page = null, string $file = '') | None | Add test mode data | |
$procache->static->cacheIndexBasename() $procache->static->cacheIndexBasename() $procache->static->cacheIndexBasename(string $hostname = '', $https = null, string $ext = 'html') | string | Return the index filename relative to the given host and https state | |
$procache->static->cacheIndexBasenames() $procache->static->cacheIndexBasenames() $procache->static->cacheIndexBasenames($ext = 'html', bool $getVerbose = false) | array | Get all possible index file basenames for cache files | |
$procache->static->cacheMaintenance() $procache->static->cacheMaintenance() $procache->static->cacheMaintenance(array $options = []) | int array | Cache maintenance to clear out cache files and DB entries have have expired | |
$procache->static->clear() $procache->static->clear() $procache->static->clear() | ProCacheStaticClear | Get ProCacheStaticClear instance | |
$procache->static->clearAll() $procache->static->clearAll() $procache->static->clearAll() | int | Clear entire cache | |
$procache->static->clearBranch() $procache->static->clearBranch(Page $page) $procache->static->clearBranch(Page $page) | int | Clear entire Page branch (Page and everything below it) | |
$procache->static->clearPage() $procache->static->clearPage(Page $page) $procache->static->clearPage(Page $page, array $options = []) | int array | Clear the cache for a specific page, including pageNum and urlSegment versions | |
$procache->static->clearPageNum() $procache->static->clearPageNum(Page $page) $procache->static->clearPageNum(Page $page, $pageNum = true, array $options = []) | int array | Clear page pagination(s) | |
| int array | Clear only root index file for given Page | |
$procache->static->clearPageUrlSegments() $procache->static->clearPageUrlSegments(Page $page) $procache->static->clearPageUrlSegments(Page $page, $urlSegments = true, array $options = []) | int array | Clear only URL segment(s) for page (optionally specifying which ones) | |
$procache->static->clearPages() $procache->static->clearPages(PageArray $items) $procache->static->clearPages(PageArray $items, array $options = []) | int array | Clear the cache for multiple pages | |
$procache->static->clearPath() $procache->static->clearPath(string $path) $procache->static->clearPath(string $path, array $options = []) | int array | Clear by path or wildcard path, regardless of page | |
$procache->static->columnExists() $procache->static->columnExists(string $column) $procache->static->columnExists(string $column, string $table = '') | bool | Does given column exist? | |
$procache->static->executeCacheClearBehaviors() $procache->static->executeCacheClearBehaviors(Page $page) $procache->static->executeCacheClearBehaviors(Page $page) | array | Execute cache clear behaviors for given Page (to be called after Page has been modified and saved) | |
$procache->static->findCacheEntries() $procache->static->findCacheEntries() $procache->static->findCacheEntries(array $options = []) | ProCacheStaticEntry | Find cache database rows of cache URLs for page matching given criteria | |
$procache->static->getBehaviorAbbrs() $procache->static->getBehaviorAbbrs() $procache->static->getBehaviorAbbrs() | array | Get array of [ ProCache::CACHECLEAR* => 'C' ] where 'C' is 1 char behavior abbreviation | |
$procache->static->getCacheClearBehaviors() $procache->static->getCacheClearBehaviors() $procache->static->getCacheClearBehaviors($options = []) | array | Get the cache clearing behaviors for all templates or a given template | |
| string | Get cache clear behaviors as string | |
$procache->static->getCacheFile() $procache->static->getCacheFile(Page $page) $procache->static->getCacheFile(Page $page, array $options = []) | string | Get cache file for given Page and options | |
$procache->static->getCachePath() $procache->static->getCachePath() $procache->static->getCachePath($page = null, array $options = []) | string | Return the path where we store cache files, optionally for a page | |
$procache->static->getCachePathRoot() $procache->static->getCachePathRoot() $procache->static->getCachePathRoot() | string | Get root of path for storing cache files | |
$procache->static->getCachePathSegments() $procache->static->getCachePathSegments(array $segments, Page $page, array $options) $procache->static->getCachePathSegments(array $segments, Page $page, array $options) | array | Hookable method that can adjust the segments array as needed | |
$procache->static->getCacheTime() $procache->static->getCacheTime() $procache->static->getCacheTime($template = null) | array int string | Get the cache time for the given Template, or for all templates | |
$procache->static->getCacheTimesStr() $procache->static->getCacheTimesStr() $procache->static->getCacheTimesStr() | string | Get a string with all custom cache times | |
$procache->static->getContentTypeExt() $procache->static->getContentTypeExt($item) $procache->static->getContentTypeExt($item) | string | Get the content-type extension for the given Page or Template | |
$procache->static->getPageCachePathsLanguages() $procache->static->getPageCachePathsLanguages(Page $page) $procache->static->getPageCachePathsLanguages(Page $page, array $options = []) | array | Get cache paths for Page in all languages that it is published in | |
$procache->static->getTable() $procache->static->getTable() $procache->static->getTable() | string | Get primary ProCache DB table name while also checking that schema is up-to-date | |
$procache->static->getTestData() $procache->static->getTestData() $procache->static->getTestData(bool $reset = true) | array | Get test mode data | |
$procache->static->getTestMode() $procache->static->getTestMode() $procache->static->getTestMode() | bool | @return bool | |
$procache->static->hasCacheFile() $procache->static->hasCacheFile(Page $page) $procache->static->hasCacheFile(Page $page, array $options = []) | bool string | Get cache file for given page and options if it exists, or false if it does not | |
$procache->static->install() $procache->static->install() $procache->static->install() | None | Install | |
$procache->static->newEntry() $procache->static->newEntry() $procache->static->newEntry(array $data = []) | ProCacheStaticEntry | Create and return a new ProCacheStaticEntry | |
$procache->static->numCachedPages() $procache->static->numCachedPages() $procache->static->numCachedPages() | int | Return the number of pages in the cache | |
$procache->static->pageInfo() $procache->static->pageInfo(Page $page) $procache->static->pageInfo(Page $page) | array bool | Return an info array about the given page’s ProCache info or false if not cached | |
$procache->static->renderCache() $procache->static->renderCache(Page $page, $out) $procache->static->renderCache(Page $page, $out) | bool array | Save a new static cache file | |
$procache->static->setTestMode() $procache->static->setTestMode(bool $testMode) $procache->static->setTestMode(bool $testMode) | None | Enable or disable test mode | |
$procache->static->uninstall() $procache->static->uninstall() $procache->static->uninstall() | None | Uninstall | |