onCacheInitialized( $hasCached)
Gets called after the cache got initialized.
startCache( $cacheExpiry=null, $cacheEnabled=null)
Initializes the caching.
bool $cacheEnabled
If the cache is enabled or not.
getCachedValue( $computeFunction, $args=[], $key=null)
Get a cached value if available or compute it if not and then cache it if possible.
CacheHelper $cacheHelper
CacheHelper object to which we forward the non-SpecialPage specific caching work.
saveCache()
Saves the HTML to the cache in case it got recomputed.
setCacheEnabled( $cacheEnabled)
Sets if the cache should be enabled or not.
addCachedHTML( $computeFunction, $args=[], $key=null)
Add some HTML to be cached.
setExpiry( $cacheExpiry)
Sets the time to live for the cache, in seconds or a unix timestamp indicating the point of expiry.
getCacheKey()
Returns the variables used to constructed the cache key in an array.
Parent class for all special pages.
getOutput()
Get the OutputPage being used for this instance.
getRequest()
Get the WebRequest being used for this instance.
getLanguage()
Shortcut to get user's language.