$procacheclearPages()

Clear the cache for multiple pages

Usage

// basic usage
$array = $procache->clearPages(PageArray $items);

// usage with all arguments
$array = $procache->clearPages(PageArray $items, bool $getFiles = true);

Arguments

NameType(s)Description
$itemsPageArray

Page instances to clear

$getFiles (optional)bool

Return array of files? Specify false to get a count instead. Default:true

Return value

array int

Files and/or directories that were removed or a count (int) if requested.


$procache methods and properties

API reference based on ProcessWire core version 3.0.252