Elgg\Cache\SimpleCache::invalidate PHP Method

invalidate() public method

Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype.
public invalidate ( ) : boolean
return boolean
    function invalidate()
    {
        _elgg_rmdir($this->getPath(), true);
        $time = time();
        $this->config->save("simplecache_lastupdate", $time);
        $this->config->set('lastcache', $time);
        return true;
    }