ProCacheStaticClear::clearPages() method

Clear the cache for multiple pages

Usage

// basic usage
$int = $clear->clearPages(PageArray $items);

// usage with all arguments
$int = $clear->clearPages(PageArray $items, array $options = []);

Arguments

NameType(s)Description
$itemsPageArray
$options (optional)array
  • getFiles (bool): Get array of files that were cleared, rather than a count? Default:false

Return value

int array

Quantity or array of files and/or directories that were removed


$clear methods and properties

API reference based on ProcessWire core version 3.0.252