ProCacheStatic::clearPageRoot()

Clear only root index file for given Page

Usage

// basic usage
$int = $proCacheStatic->clearPageRoot(Page $page);

// usage with all arguments
$int = $proCacheStatic->clearPageRoot(Page $page, array $options = []);

Arguments

NameType(s)Description
$pagePage
$options (optional)array
  • language (string|int|Language|bool): Clear only this language Default:''
  • 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


ProCacheStatic methods and properties

API reference based on ProcessWire core version 3.0.251