0
好的,所以這是我的問題。我有一個頁面,列出了一個子域下的一堆類別。我試圖清理緩存該網頁,如果用戶登錄 在動作我使用這個:Symfony:無法從緩存中刪除
if ($this->getUser()->isAuthenticated())
{
if($cache = $this->getContext()->getViewCacheManager())
{
$cache->remove('category/index?subdomain='.$this->city->getLabel());
}
}
但是,沒關係我多麼努力,它贏得」將其刪除(該文件在緩存文件夾中保持不變)。
我cache.yml文件,就將顯示以下內容:
index:
enabled: true
lifetime: 604800
我在做什麼錯?