_clean example


    public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = [])
    {
        return $this->_clean($mode$tags);
    }

    /** * Return an array of stored cache ids. Not implemented for Redis cache * * @throws Zend_Cache_Exception */
    public function getIds()
    {
        Zend_Cache::throwException('Not possible to get available IDs on Redis cache');
    }

    

    public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
    {
        $this->_checkAndBuildStructure();
        $return = $this->_clean($mode$tags);
        $this->_automaticVacuum();
        return $return;
    }

    /** * Return an array of stored cache ids * * @return array array of stored cache ids (string) */
    public function getIds()
    {
        

    public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
    {
        // We use this protected method to hide the recursive stuff         clearstatcache();
        return $this->_clean($this->_options['cache_dir']$mode$tags);
    }

    /** * Return an array of stored cache ids * * @return array array of stored cache ids (string) */
    public function getIds()
    {
        return $this->_get($this->_options['cache_dir'], 'ids', array());
    }

    

    public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
    {
        switch ($mode) {
            case Zend_Cache::CLEANING_MODE_ALL:
            case Zend_Cache::CLEANING_MODE_OLD:
                $cache_dir = ini_get('zend_accelerator.output_cache_dir');
                if (!$cache_dir) {
                    return false;
                }
                $cache_dir .= '/.php_cache_api/';
                return $this->_clean($cache_dir$mode);
                break;
            case Zend_Cache::CLEANING_MODE_MATCHING_TAG:
                $idlist = null;
                foreach ($tags as $tag) {
                    $next_idlist = output_cache_get(self::TAGS_PREFIX.$tag$this->_directives['lifetime']);
                    if ($idlist) {
                        $idlist = array_intersect_assoc($idlist$next_idlist);
                    } else {
                        $idlist = $next_idlist;
                    }
                    if (count($idlist) == 0) {
                        
Home | Imprint | This part of the site doesn't use cookies.