You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
Documentation already gives information about how to add LswMemcacheBundle support on Doctrine (see https://github.com/LeaseWeb/LswMemcacheBundle#doctrine-support)
But even if this is well handled for default entity manager, it seems it does not work for multiple entity managers :
When using executeCacheQuery() we get : Trying to cache a query but no result driver is configured.
This gives this error : Argument 1 passed to Doctrine\DBAL\Configuration::setResultCacheImpl() must implement interface Doctrine\Common\Cache\Cache, instance of Lsw\MemcacheBundle\Cache\AntiDogPileMemcache given.
The text was updated successfully, but these errors were encountered:
When you try to add the cache yourself, you should instantiate a "Lsw\MemcacheBundle\Doctrine\Cache\MemcacheCache" class and then call "setMemcache()" on the created object to set the client.
Well, we still have not figured out why "executeCacheQuery" gives an error and why it seems it does not work for multiple entity managers. Or did you find reasons for that?
Well, we still have not figured out why "executeCacheQuery" gives an error
and why it seems it does not work for multiple entity managers. Or did you
find reasons for that?
—
Reply to this email directly or view it on GitHub #59 (comment)
.
Documentation already gives information about how to add LswMemcacheBundle support on Doctrine (see https://github.com/LeaseWeb/LswMemcacheBundle#doctrine-support)
But even if this is well handled for default entity manager, it seems it does not work for multiple entity managers :
When using executeCacheQuery() we get :
Trying to cache a query but no result driver is configured.
Another way to check :
Copy of YAML :
If we try to add the cache class ourself, we end with an error :
This gives this error :
Argument 1 passed to Doctrine\DBAL\Configuration::setResultCacheImpl() must implement interface Doctrine\Common\Cache\Cache, instance of Lsw\MemcacheBundle\Cache\AntiDogPileMemcache given.
The text was updated successfully, but these errors were encountered: