DDC-48: Cache Namespaces #60

Closed
opened 2026-01-22 12:25:40 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 14, 2009).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user mcurcio:

For users who run multiple doctrine 2 installations on a single machine, it is possible for APC/Memcache cache collisions to occur. One possible solution would allow the user to specify a namespace when creating the cache instance. I have attached such a solution. However, after reviewing DDC-47, there might be a better solution that addresses both requirements.

Originally created by @doctrinebot on GitHub (Oct 14, 2009). Originally assigned to: @jwage on GitHub. Jira issue originally created by user mcurcio: For users who run multiple doctrine 2 installations on a single machine, it is possible for APC/Memcache cache collisions to occur. One possible solution would allow the user to specify a namespace when creating the cache instance. I have attached such a solution. However, after reviewing [DDC-47](http://www.doctrine-project.org/jira/browse/DDC-47), there might be a better solution that addresses both requirements.
admin added the Improvement label 2026-01-22 12:25:40 +01:00
admin closed this issue 2026-01-22 12:25:40 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 14, 2009):

@doctrinebot commented on GitHub (Oct 14, 2009): - relates to [DDC-47: Improve query resultset cache control](http://www.doctrine-project.org/jira/browse/DDC-47)
Author
Owner

@doctrinebot commented on GitHub (Oct 22, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 22, 2009): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Oct 23, 2009):

Comment created by mcurcio:

Thanks for adding this feature. It appears that the AbstractCache::fetch method is namespacing the id twice (http://trac.doctrine-project.org/browser/trunk/lib/Doctrine/Common/Cache/AbstractCache.php?rev=6554#L59), is this intentional?

@doctrinebot commented on GitHub (Oct 23, 2009): Comment created by mcurcio: Thanks for adding this feature. It appears that the AbstractCache::fetch method is namespacing the id twice (http://trac.doctrine-project.org/browser/trunk/lib/Doctrine/Common/Cache/AbstractCache.php?rev=6554#L59), is this intentional?
Author
Owner

@doctrinebot commented on GitHub (Oct 23, 2009):

Comment created by @jwage:

Whoops. No this was just a mistake I made during the refactoring. It is fixed now.

@doctrinebot commented on GitHub (Oct 23, 2009): Comment created by @jwage: Whoops. No this was just a mistake I made during the refactoring. It is fixed now.
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/454d5e26b58eee7ad6d7

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/454d5e26b58eee7ad6d7 - [10069_cache_namespaces.diff](https://gist.github.com/454d5e26b58eee7ad6d7#file-10069_cache_namespaces-diff)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#60