0
我在symfony2中使用Doctrine结果缓存。symfony2中的生产环境中不会删除Doctrine结果缓存
只在生产环境原则结果缓存删除不删除缓存。 但在开发环境中,结果缓存删除工作正常。
这里是我写的使用结果缓存在教条中的代码。
//code to store result cache in doctrin.
$qb->useResultCache(true);
$qb->setResultCacheId('key');
//code to delete result cache when db data edit.
$em->getConfiguration()->getResultCacheImpl()->delete('key');
这里问题在于symfony2中的生产环境。
生产环境是否有任何特殊的教条缓存配置?
请帮我解决这个问题。
我有检查环境它只是'prod',并试图删除所有的缓存也仍然没有在生产环境中删除。 –