mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
QueryCacheProfile generating invalid cacheKeys #5040
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odiaseo on GitHub (Mar 10, 2016).
The method
Doctrine\Common\Cache\Cache::generateCacheKeysuses the code below to generate the cache key which is then used as the index of the result array. The value of$queryis the SQL string. The entire value needs to be hashed or serialized.$realCacheKey = $query . "-" . serialize($params) . "-" . serialize($types);