Method | Description | |
---|---|---|
__construct ( |
Constructor | |
disable ( ) : void | Disables the simple cache. | |
enable ( ) : void | Enables the simple cache. | |
getRoot ( ) : string | Get the base url for simple cache requests | |
getUrl ( string $view, string $subview = '' ) : string | Get the URL for the cached view. | |
init ( ) : void | Set up config appropriately on engine boot. | |
invalidate ( ) : boolean | Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype. | |
isEnabled ( ) : boolean | Is simple cache enabled | |
registerView ( string $view_name ) : void | Registers a view to simple cache. |
Method | Description | |
---|---|---|
getPath ( ) : string | Returns the path to where views are simplecached. |
public __construct ( |
||
$config | Elgg's global configuration | |
$views | Elgg's views registry |
public invalidate ( ) : boolean | ||
return | boolean |
public registerView ( string $view_name ) : void | ||
$view_name | string | View name |
return | void |