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
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
Starts the caching: Gets either an already cached file if existing or starts the output buffering.