src/StrokerCache/Controller/CacheController.php
/**
     * Clear items from the cache
     *
     * @return string
     */
Clear items from the cache
@return string
Clear items from the cache @return string
public function clearAction()
    {
        $tags = $this->getRequest()->getParam('tags');
        if (null === $tags) {
            return "\n\nYou should provide tags";
        }
        $tags   = explode(',', $tags);
        $result = $this->getCacheService()->clearByTags($tags);
        return sprintf(
            "\n\nCache invalidation %s\n\n",
            $result ? 'succeeded' : 'failed'
        );
    }
public function clearAction ( ) { $ tags = $ this -> getRequest ( ) -> getParam ( 'tags' ) ; if ( null === $ tags ) { return " \n \n You should provide tags " ; } $ tags = explode ( ',' , $ tags ) ; $ result = $ this -> getCacheService ( ) -> clearByTags ( $ tags ) ; return sprintf ( " \n \n Cache invalidation %s \n \n " , $ result ? 'succeeded' : 'failed' ) ; }
Clear items from the cache
 @return string
Clear items from the cache @return string