src/Webiny/Hrc/Hrc.php
public function purgeByCacheKey($cacheKey)
    {
        // initialize log
        $log = new DebugLog();
        $log->addMessage('State', 'Purge by cache key');

        // remove the key from index
        $this->indexStorage->deleteEntryByKey($cacheKey);

        // purges from cache storage
        return $this->cacheStorage->purge($cacheKey);
    }
public function purgeByCacheKey($cacheKey)
    {
        // initialize log
        $log = new DebugLog();
        $log->addMessage('State', 'Purge by cache key');

        // remove the key from index
        $this->indexStorage->deleteEntryByKey($cacheKey);

        // purges from cache storage
        return $this->cacheStorage->purge($cacheKey);
    }
public function purgeByCacheKey ( $ cacheKey ) { // initialize log $ log = new DebugLog ( ) ; $ log -> addMessage ( 'State' , 'Purge by cache key' ) ; // remove the key from index $ this -> indexStorage -> deleteEntryByKey ( $ cacheKey ) ; // purges from cache storage return $ this -> cacheStorage -> purge ( $ cacheKey ) ; }
Purge the given cache key.

@param string $cacheKey Cache key that should be purged.

@return bool True if purge was successful, otherwise false.
Purge the given cache key .