Make WordPress Core

Opened 2 months ago

Last modified 3 weeks ago

#47884 assigned defect (bug)

Unable to remove "counts" from non persistent cache groups

Reported by: Maciej Laskowski Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Cache API Keywords: dev-feedback
Focuses: performance Cc:
PR Number:



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.

Change History (2)

#1 @mukesh27
2 months ago

  • Focuses performance added
  • Keywords dev-feedback added
  • Version changed from 5.2.2 to 3.0

#2 @Maciej Laskowski
3 weeks ago

Hi guys,

Any news on this issue?

Note: See TracTickets for help on using tickets.