ProCacheStatic::getPageCachePathsLanguages()

Get cache paths for Page in all languages that it is published in

Usage

// basic usage
$array = $proCacheStatic->getPageCachePathsLanguages(Page $page);

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

Arguments

NameType(s)Description
$pagePage
$options (optional)array
  • 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): Limit to just this language Default:null

Return value

array

Returned array of cache paths is indexed by language name


ProCacheStatic methods and properties

API reference based on ProcessWire core version 3.0.251