output_cache_remove_key example

$lifetime = $this->_directives['lifetime'];
        $result1  = output_cache_put($id, array($datatime()));
        $result2  = (count($tags) == 0);

        foreach ($tags as $tag) {
            $tagid = self::TAGS_PREFIX.$tag;
            $old_tags = output_cache_get($tagid$lifetime);
            if ($old_tags === false) {
                $old_tags = array();
            }
            $old_tags[$id] = $id;
            output_cache_remove_key($tagid);
            $result2 = output_cache_put($tagid$old_tags);
        }

        return $result1 && $result2;
    }


    /** * Remove a cache record * * @param string $id Cache id * @return boolean True if no problem */
Home | Imprint | This part of the site doesn't use cookies.