staticCache staticCache(
)
|
|
void clearHTMLCache(
[
$folder = ''], string
$cachefolder
)
|
|
Cleans out the cache folder. (Adpated from the zenphoto image cache)
Parameters:
|
string |
$cachefolder: |
the sub-folder to clean |
|
|
$folder: |
|
string createCacheFilepath(
)
|
|
Creates the path and filename of the page to be cached.
void deleteStaticCacheFile(
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.
Place this function on zenphoto's root index.php file in line 75 right after the plugin loading loop