$procachegetCachePath()

Return the path where we store cache files (optionally for a specific page)

Usage

// basic usage
$string = $procache->getCachePath();

// usage with all arguments
$string = $procache->getCachePath($page = null, array $options = []);

Arguments

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

Optionally get path for given page, or omit/null for all pages Default:null

$options (optional)array

Options to refine return value:

  • pageNum (int): Page/pagination number Default:1
  • urlSegments (array|string): Array or string of URL segments Default:[]
  • create (bool|null): Create if it does not exist? true, false or null for auto-detect Default:null
  • language (Language|null): Language to use Default:null

Return value

string


$procache methods and properties

API reference based on ProcessWire core version 3.0.252