PagesLoaderCache::cacher method

Remove all pages from the cache

Usage

// basic usage
$int = $pages->cacher->uncacheAll();

// usage with all arguments
$int = $pages->cacher->uncacheAll($page = null, array $options = []);

Arguments

NameType(s)Description
$page (optional)Page null

Optional Page that initiated the uncacheAll

$options (optional)array

Additional options to modify behavior:

  • shallow (bool): By default, this method also calls $page->uncache(). To prevent call to $page->uncache(), set 'shallow' => true.

Return value

int

Number of pages uncached


$pages->cacher methods and properties

API reference based on ProcessWire core version 3.0.252