Extension:PhpTags Wiki/Reference/WCache

The WCache class manages the cache of page rendering.
 * static methods and properties works with the objects of current page

Properties

 * CACHE_EXPIRY : Number of seconds after which this page renderings cache should expire
 * CACHE_TIME : Time when this page was rendered. Returns DateTime object and it will cause an error if nothing provides DateTime object. DateTime object may be provided by the PhpTags Functions extension.
 * CACHE_TIME_STRING : Time when this page was rendered.

disableCache

 * Description

Set a flag in the page renderings cache indicating that the content is dynamic and shouldn't be cached.

updateCacheExpiry

 * Description

Sets the number of seconds after which this page renderings cache should expire. If called with a value greater than the value provided at any previous call, the new call has no effect.
 * The WCache::updateCacheExpiry method does not work properly due to bug 67997


 * Parameters
 * $seconds – the number of seconds

Returns the value is smaller or equal to the smallest number that was provided as an argument to WCache::updateCacheExpiry.
 * Return Values

Examples
demo
 * Example 1