[DDC-2043] Extra cache operation in DBAL\Cache\ResultCacheStatement.php Created: 26/Sep/12 Updated: 26/Sep/12
|Project:||Doctrine 2 - ORM|
|Reporter:||Bogdan Albei||Assignee:||Benjamin Eberlei|
CentOS, PHP 5.3.10
This is the closeCursor() method in DBAL\Cache\ResultCacheStatement.php:
We are using Memcache and I noticed an extra GET operation on all cache misses. In the code above I believe the fetch call is not necessary and that the code would do the same without it.
|Comment by Christophe Coevoet [ 26/Sep/12 ]|
The SQL is used as a key because it is what identifies the query which is done (well, the statement and the parameters)
|Comment by Bogdan Albei [ 26/Sep/12 ]|
The cacheKey already identifies the query(or at least it should). Would we have cases where different queries would want to use the same cache key?