Garbage Collection - mithra62/ee_debug_toolbar GitHub Wiki
The Garbage Collection Library contains the necessary functionality to keep the cache mechanism in check.
Ee_toolbar_gc
The Garbage Collection library is loaded just like any other CodeIgniter library.
Example
$gc = new \DebugToolbar\Toolbar\GarbageCollection;
$gc->run();
Methods
Below are the available methods to you.
expired()
expired($file)
- $file - The full path to the cached file
- return - Bool
Determines whether a given $file
is past the $expires
property
delete()
delete($file)
- $file - The full path to the cached file
- return - Bool
Deletes the given $file
run()
run()
- return - Null
Executes the cache mechanism