Class HyperCache
LUDATO HyperCache
public
|
#
__construct( string $directory, string|null $page = NULL, string $param = "default", boolean $dev = FALSE )
Saving params and configuring Note: Paths are saved url-encoded |
public
|
|
public
boolean
|
|
public
|
|
public
|
#
autoLoadCache( )
Shows cache and if file is cached, otherwise starts caching and executing the rest of the file |
public
|
|
public
boolean
|
|
public
|
#
purgeCurrent( )
Deletes cache for current page and params (eg. You have CMS and publish a new article. You need to purge just article_list.php, not article_details.php. If user publishes comment, purge just article_details.php with param of article name/ID) |
public
|
|
public
|
|
public
|
#
purgeCustom( string $directory, string $page, string $param = NULL )
Purge cache from specified directory, for specific page (and params) |
public
string
|
$prepend
Valid PHP code (without opening tags) to be prepended to cache |
|
public
string
|
$append
Valid PHP code (without opening tags) to be appended to cache |
|
public
boolean
|
$evalPrepend
Determines if prepended code should be eval()'ed when generating cache (alternative - put code before startCache()) |
|
public
boolean
|
$evalAppend
Determines if appended code should be eval()'ed when generating cache (alternative - put code after saveCache()) |