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.236

Latest news

  • ProcessWire Weekly #520
    In the 520th issue of ProcessWire Weekly we'll check out some of the latest additions to the ProcessWire module's directory, share some highlights from the latest weekly update from Ryan, and more. Read on!
    Weekly.pw / 27 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits