Back to Cache class

Method gc

public bool
gc
()
Garbage collect expired cache data
Returns
  • bool
Since
  • 1.7.0
Class: Cache
Project: Joomla

Method gc - Source code

/**
 * Garbage collect expired cache data
 *
 * @return  boolean
 *
 * @since   1.7.0
 */
public function gc()
{
    try {
        return $this->_getStorage()->gc();
    } catch (CacheExceptionInterface $e) {
        if (!$this->getCaching()) {
            return false;
        }
        throw $e;
    }
}