Provides easy, persistent caching of markup, strings, arrays or PageArray objects.
Click any linked item for full usage details and examples. Hookable methods are indicated with the
WireCache class also inherits all the methods and properties of: Wire.
icon. In addition to those shown below, the
These constants are used for the
$expire argument of get() and save() cache methods.
|WireCache::expireDaily const||86400||Cache should expire once per day|| |
|WireCache::expireHourly const||3600||Cache should expire once per hour|| |
|WireCache::expireMonthly const||2419200||Cache should expire once per month|| |
|WireCache::expireNever const||2010-04-08 03:10:10||Cache should never expire (unless manually cleared).|| |
|WireCache::expireNow const||0||Cache should expire now|| |
|WireCache::expireSave const||2010-01-01 01:01:01||Cache should expire when a given resource (Page or Template) is saved.|| |
|WireCache::expireWeekly const||604800||Cache should expire once per week|| |
Additional methods and properties
In addition to the methods and properties above, WireCache also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.124