Active
Project:
Cache Expiration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2016 at 14:48 UTC
Updated:
3 Jul 2019 at 22:13 UTC
Jump to comment: Most recent
Hi!
I have problems with MemCache Storage.
I saved a node, I show the expire message and then I run cron.
Also, In the logs, I see the recacher sucessful logs (200).
But the page is still showing the previous version.
Any idea?
Regards,
JOINSO
Comments
Comment #2
bburgSorry for replying to an old issue,
I think that Memcache storage fails to assemble the cache ids for objects it purges.
I was getting several PHP Notices like:
Notice: Array to string conversion in dmemcache_key() (line 1056 of /sites/all/modules/contrib/memcache/dmemcache.inc).I jury rigged some code to throw an Exception and generate a stack trace, here is what I got (modified for readability):
The related Expire module code seems to be ExpireAPI::processInternalPaths()
It's passing these as cache keys to cache_clear_all(). I would assume that this should be a string, not an array.
I guess according to the documentation for cache_clear_all(), it either accepts a cache id, or an array of cache ids. I perhaps the problem is the "query" parameter here, which can be whatever the value of $parsed_path['query'], or an empty array itself. Which seems like a bug to me.
Comment #3
sgdev commentedMight want to look at this patch we just posted:
https://www.drupal.org/project/expire/issues/2412517#comment-13170084