6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10072] Memcache storage is duplicating the key prefix
*
Your Email Address
*
Spam protection
Enter the letters below:
._.. ,. ..__. __ | \./ |_/ | |/ ` _|_ | | \|__\\__.
Comment
>>> The default value for memcache caching prefix >>> ($conf['cache']['params']['prefix']) is empty, so a duplicate prefix >>> would be an issue with your local installation. >> >> I have setted $conf['cache']['params']['prefix'] because i have >> multiple horde instances (vhosts) in the same memcache... >> If the value of $conf['cache']['params']['prefix'] is something like >> 'ABC' then i will have on my memcache duplicate keys like: >> ABC_horde_perms_sql >> ABC_ABC_horde_perms_sql >> and for some others i even have triplicates!!! >> ABC_ABC_ABC_horde_perms_sql >> >> Picking up a practical example: >> Horde_Cache_Storage_Memcache method set(), adds the prefix to the key >> and then calls $this->_memcache->set().. and this method will also >> append the prefix to the $key, thus making it duplicate > > I still don't understand why this is an issue. Please don't tell me > you are looking at key names in your memcache (or any) backend. > Because that is completely irrelevant. > > All that matters is that for a given key input to Cache::get() (or > Cache::set()), a single, unique data value is associated with it. If > a key has 2, 3 (or 10) prefixes tacked on to the front, why does that > matter?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers