bool CPageCache::InitCache( int cache_life_time, string cache_id, mixed init_dir = false )
The method InitCache initializes a number of properties of the CPageCache class instance. If the cache file is absent or expired, the function will return false, or true otherwise.
Parameter | Description |
---|---|
cache_life_time | Cache time to live, in seconds. |
cache_id | A unique cache ID. This ID must contain all the parameters which may affect the result of cached code execution. |
init_dir | The name of directory for which the cache is valid. If
"/", the cache is valid for all site directories. Optional. Current directory is used by default. |
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |