PageCache PageCache(
[Blog
$Blog = NULL]
)
|
|
Constructor
Parameters:
|
Blog |
$Blog: |
to use, can be NULL |
We are going to output personal data and we want to abort collecting the data for the cache.
API Tags:
| Return: | true if cache has been successfully created |
Check if cache contents are available, otherwise start collecting output to be cached
API Tags:
| Return: | if we found and have echoed content from the cache |
End collecting output to be cached
string gen_filecache_path(
string
$url
)
|
|
Generate path for caching $url.
Parameters:
void get_af_filecache_path(
)
|
|
Get path to file for current URL
Information Tags:
| Todo: | fp> We may need to add some keys like the locale or the charset, I'm not sure. |
void invalidate(
URL
$url
)
|
|
Invalidate a particular page from the cache
Parameters:
|
URL |
$url: |
of the page to be invalidated |
void output_handler(
$buffer
)
|
|
This is called every x bytes to provide real time output
Parameters:
Retrieve and output cache for current URL.
API Tags:
| Return: | true if we could retrieve |