Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • admin_approval
  • auto_backup
  • cacheManager
  • cacheManagerFeed
  • cloneZenphoto
  • googleVerifyOptions
  • ipBlocker
  • publishContent
  • rewriteTokens
  • search_statistics
  • security_logger
  • setupexternalFeed
  • setupRSS
  • static_html_cache
  • tinymce4Options
  • zenphoto_org_news
  • zenphotoDonate

Functions

  • admin_showupdate
  • checkForUpdate
  • getTinyMCE4ConfigFiles
  • googleVerifyHead
  • printNews
  • site_upgrade_button
  • site_upgrade_status
  • tinymce4ConfigJS
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class static_html_cache

Package: plugins\admin
Author: Malte Müller (acrylian)
Located at zp-extensions/static_html_cache.php
Methods summary
public boolean
# 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

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

Returns

boolean
public
# startHTMLCache( )

Starts the caching: Gets either an already cached file if existing or starts the output buffering.

Starts the caching: Gets either an already cached file if existing or starts the output buffering.

public
# endHTMLCache( )

Ends the caching: Ends the output buffering and writes the html cache file from the buffer

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

public
# abortHTMLCache( )

Aborts HTML caching Used for instance, when there is a 404 error or such

public string
# createCacheFilepath( $accessType )

Creates the path and filename of the page to be cached.

Creates the path and filename of the page to be cached.

Returns

string
public
# deletestatic_html_cacheFile( string $cachefilepath )

Deletes a cache file

Deletes a cache file

Parameters

$cachefilepath
Path to the cache file to be deleted
public static
# clearHTMLCache( string $folder = NULL )

Cleans out the cache folder. (Adpated from the zenphoto image cache)

Cleans out the cache folder. (Adpated from the zenphoto image cache)

Parameters

$folder
$cachefolder the sub-folder to clean
public static
# disable( )

call to disable caching a page

call to disable caching a page

public
# static_html_cache_options( )
public
# getOptionsSupported( )
public
# handleOption( $option, $currentValue )
public static string
# _disable( string $uri )

used to disable cashing when the uri is an image processor uri

used to disable cashing when the uri is an image processor uri

Parameters

$uri

Returns

string
Properties summary
public boolean $enabled
# true
Zenphoto doc API documentation generated by ApiGen