Page_cache __construct(
string
$dir, [int
$perms = 0777]
)
|
|
Constructs controller object and sets basic configuration
Parameters:
string |
$dir: |
Cache directory |
int |
$perms: |
Octal permission mask for cache directories |
API Tags:
int clear(
string
$path
)
|
|
Removes an item and all contained items and cache files
Parameters:
API Tags:
Return: | Number of files removed |
Access: | public |
void init(
string
$path, string
$name, [array
$exclude = array()], [string
$ext = '']
)
|
|
Initializes actual page cache
Parameters:
string |
$path: |
Page path string |
string |
$name: |
Short name for the cache file |
array |
$exclude: |
A list of GET params to be excluded from consideration |
string |
$ext: |
File extension |
API Tags:
Reads the page cache object from disk and sends it to output.
If the cache object does not exist, then just calculates the path for a following write() call.
API Tags:
Writes output buffer contents to a cache image file
API Tags: