【发布时间】:2013-11-28 10:24:34
【问题描述】:
我在 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 中的生产环境。
生产环境有什么特殊的学说缓存配置吗?
请帮我解决这个问题。
【问题讨论】:
标签: php symfony caching doctrine-orm memcached