ProCacheStatic::findCacheEntries() method

Find cache database rows of cache URLs for page matching given criteria

Usage

// basic usage
$proCacheStaticEntry = $proCacheStatic->findCacheEntries();

// usage with all arguments
$proCacheStaticEntry = $proCacheStatic->findCacheEntries(array $options = []);

Arguments

NameType(s)Description
options (optional)array
  • page (Page|null): Specify Page object to limit results to that Page.
  • path (string): Specify wildcard path to find matching entries, i.e. "/tours" or "boat" or "*-bike/"
  • language (Language|int|string): Match entries in this language, omit to match all, boolean false to match only default language.
  • urlSegmentStr (string): Match entries having this URL segment string, wildcards or regex is OK.
  • urlSegments (array|bool): Match entries having any of these URL segments, omit to get all, empty array to allow inclusion of any. boolean false to exclude all URL segments, or boolean true to get only URL segments.
  • pageNum (int|bool): Get only this pageNum, true to get only pageNum>1, false to get no pageNum>1, or int 0 to also include any paginations.
  • hasParent (Page|int): Find entries having this parent page somewhere in their parents

Return value


ProCacheStatic methods and properties

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #559
    The 559th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 25 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer