Skip to content
mithra62 edited this page Mar 17, 2013 · 4 revisions

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

$this->EE->load->library('ee_toolbar_gc', null, 'garbage_collection');
$this->EE->garbage_collection->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

Clone this wiki locally