static void clearHTMLCache(
[
$folder = NULL], string
$cachefolder
)
|
|
Cleans out the cache folder. (Adpated from the zenphoto image cache)
Parameters:
string |
$cachefolder: |
the sub-folder to clean |
|
$folder: |
|
call to disable caching a page
static string _disable(
string
$uri
)
|
|
used to disable cashing when the uri is an image processor uri
Parameters:
Aborts HTML caching
Used for instance, when there is a 404 error or such
bool checkIfAllowedPage(
)
|
|
Checks if the current page should be excluded from caching.
Pages that can be excluded are custom pages included Zenpage pages (these optionally more specific by titlelink) and the standard theme pages image.php (optionally by image file name), album.php (optionally by album folder name) or index.php
string createCacheFilepath(
$accessType
)
|
|
Creates the path and filename of the page to be cached.
Parameters:
void deletestatic_html_cacheFile(
string
$cachefilepath
)
|
|
Deletes a cache file
Parameters:
string |
$cachefilepath: |
Path to the cache file to be deleted |
Ends the caching: Ends the output buffering and writes the html cache file from the buffer
Place this function on zenphoto's root index.php file in the absolute last line
void getOptionsSupported(
)
|
|
void handleOption(
$option,
$currentValue
)
|
|
Parameters:
Starts the caching: Gets either an already cached file if existing or starts the output buffering.
void static_html_cache_options(
)
|
|