-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I decided to use sfMemcachedCache for view_cache and i18n_cache.
The view_cache worked without problems.
But the i18n cache seems to reupdate one every access.
After searching I found that the default lifetime for i18n cache is set to 31556926 seconds which is more than the 2592000 seconds limit where memcached switch from absolute timestamp to relative from now.
This is fine for sfMemcachedCache::set because the third argument is set to time() + $lifetime but this not the same for sfMemcachedCache::setMetadata where it's only $lifetime.
So the cache data is there with a correct lifetime but it's metadata is always timeouted.
Would be nice to do the same in sfMemcachedCache::setMetadata as in ::set and call Memcached::set with time() + $lifetime
Metadata
Metadata
Assignees
Labels
No labels