src/SearchBundle/objects/db/TShopSearchCache.class.php
public function CacheIsStale()
    {
        $cachAge = strtotime($this->fieldLastUsedDate);
        $bIsStale = ((time() - $cachAge) > TdbShopSearchCache::MAX_CACHE_AGE_IN_SECONDS);

        return $bIsStale;
    }
public function CacheIsStale()
    {
        $cachAge = strtotime($this->fieldLastUsedDate);
        $bIsStale = ((time() - $cachAge) > TdbShopSearchCache::MAX_CACHE_AGE_IN_SECONDS);

        return $bIsStale;
    }
public function CacheIsStale ( ) { $ cachAge = strtotime ( $ this -> fieldLastUsedDate ) ; $ bIsStale = ( ( time ( ) - $ cachAge ) > TdbShopSearchCache :: MAX_CACHE_AGE_IN_SECONDS ) ; return $ bIsStale ; }
return true if the cache has become stale - will remove stale cache entries.

@return bool
return true if the cache has become stale - will remove stale cache entries .