DDC-1916: Centralize the Cache mechanism simplifying the query creation #2416

Closed
opened 2026-01-22 13:52:20 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 9, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user liuggio:

Hi all,

in a big project if you have queries spread out in different
repositories,
when you have to modify a cache lifetime, you have to search the query and
modify the code, than test it.
Is not so easy also to answer to 'how much is the cache for the query XYZ?'

the idea:
Each group of repository (bundle) should have in a single point maybe into its config file a place where you could set the lifetime of the various queries.

see the code for a better explanation
https://gist.github.com/3075742

the pro: a better handling of the cache mechanism
cons: ?

Do you think is a good approach?
Have you ever had a similar problem?

Thanks

liuggio

Originally created by @doctrinebot on GitHub (Jul 9, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user liuggio: Hi all, in a big project if you have queries spread out in different repositories, when you have to modify a cache lifetime, you have to search the query and modify the code, than test it. Is not so easy also to answer to 'how much is the cache for the query XYZ?' the idea: Each group of repository (bundle) should have in a single point maybe into its config file a place where you could set the lifetime of the various queries. see the code for a better explanation https://gist.github.com/3075742 the pro: a better handling of the cache mechanism cons: ? Do you think is a good approach? Have you ever had a similar problem? Thanks liuggio
admin added the New Feature label 2026-01-22 13:52:20 +01:00
admin closed this issue 2026-01-22 13:52:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2416