CPHPCache class

CPhpCache class is used to handle PHP caching and HTML result for executed script.

Class methods

Method Description Available from version
StartDataCache Initializes the caching mechanism and starts the buffered HTML output, or emits the cache content.
EndDataCache Saves the buffered HTML output and PHP variables in the cache file.
InitCache Initializes the caching mechanism.
GetVars Returns PHP variables stored in cache.
Output Emits the cached HTML result.
IsCacheExpired Checks whether the cache is expired or not.
CleanDir Cleans cache by the basedir parameter.
AbortDataCache Cancels creation of current cache.

See Also

  • CPageCache class

  • © «Bitrix24», 2001-2023