mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Inconsistent naming for different caches #5911
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 @Dadibom on GitHub (Mar 6, 2018).
Trying to set a default TTL for the query cache by extending doctrine, however I cannot find the actual QUERY cache. It appears QueryCacheProfile is not actually for the query cache, but for the result cache.
I found this code in AbstractQuery:
Which is very confusing, seeing as the result cache lifetime should be determined by "resultCacheProfile", don't you think?
There's also a function named
executeUsingQueryCache, however this does not use $this->queryCacheProfile but instead $this->em->getCache()->getQueryCache()...however this does not appear to be for the query cache but for l2...
And that's where I gave up. Would love some clarification :)