Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Too many cache_sets / cache clears are a big problem.
Proposed resolution
- Provide a variable like memcache_debug_cache_file that once created writes data to the given filename - only the cids obviously.
Like:
cache_set: variables -> cache_bootstrap
cache_set: / -> cache_page
etc.
That is the simplest and most efficient introspection I can only get by patching memcache or core at the moment.
Using a cache decorator would also be possible like heisencache, but nice if it was build in ...
Comments
Comment #2
Jeremy CreditAttribution: Jeremy at Tag1 Consulting commented@Fabianx testing would be appreciated, as well as patches to improve the functionality I've added. (In particular, calls to ->getMulti aren't currently being logged when in Verbose mode.)