Cache


This library provides methods to clear object cache files.


Properties

No public properties available.


clear_objects()

This method will remove all object cache files. If the $class parameter is specified, only the cache for that class will be cleared.

$this->zajlib->cache->clear_objects($class_name)

@param string $class_name The name of the class to be cleared. If left empty, the entire object cache for all classes will be cleared.
@return bool Always returns true.

clear_object()

This method will remove a specific object cache file.

$this->zajlib->cache->clear_object($class_name, $id)

@param string $class_name The name of the class to be cleared.
@param string $id The id parameter which specifies the specific id of the object to be cleared.
@return bool Returns true if something was deleted, false otherwise.

Outlast Web & Mobile Development (c) 2023 | Privacy Policy |