[wp-trac] [WordPress Trac] #47884: Unable to remove "counts" from non persistent cache groups

WordPress Trac noreply at wordpress.org
Fri Aug 16 07:13:57 UTC 2019


#47884: Unable to remove "counts" from non persistent cache groups
------------------------------+-----------------------------
 Reporter:  Maciej Laskowski  |      Owner:  (none)
     Type:  defect (bug)      |     Status:  assigned
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Cache API         |    Version:  5.2.2
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Hi,

 I am using https://github.com/tillkruss/redis-cache as a Redis adapter and
 a persistent object cache plugin. I would like to cache "counts" cache
 group in Redis as well but even if I remove it from non persistent groups
 in redis-cache Wordprpress adds it back in
 https://core.trac.wordpress.org/browser/branches/5.2/src/wp-
 includes/load.php#L586. Commenting out this line solves the problem but it
 is not a solution and I cannot find any way of disabling this default
 WordPress behaviour.

 It looks like a bug that whenever object-cache dropin defines
 wp_cache_add_global_groups() function (like redis-cache does) it is
 impossible to remove "counts" and "plugins" from non persistent cache
 groups.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47884>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list