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