Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#49899 new enhancement

<plugin_name> detected an advanced-cache.php file in the wp-content directory. It seems that this is not the <plugin_name> advanced-cache.php file. Please remove this file and disable any other caching plugins to use this <plugin_name>.

Reported by: jeffreycooper's profile jeffreycooper Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Cache API Keywords: reporter-feedback
Focuses: performance Cc:


How to Reproduce

Simply install and activate two cache plugins that use advanced-cache.php file from the admin dashboard one after another.

Isn't that time to change how WordPress use the advanced-cache.php file? Why not make wp-settings.php file to look for:


In this way cache plugin developers will be able to create file with their name and functionality such as:


In this way there will be no file replacing/removing and etc. and the whole plugin fight on who to use the advanced-cache.php file will be resolved. There will be no problem to have:


The other possible (with eventually slower processing) solution is the advanced-cache.php file to be searched for in all of the plugins directory:


In this way each plugin can store their advanced-cache.php file in their own plugin root folder:


And again this will be resolved. Any ideas on that?

Thanks in advance.

Change History (3)

#1 @johnbillion
4 years ago

  • Focuses coding-standards removed
  • Keywords reporter-feedback added; dev-feedback removed
  • Severity changed from major to normal

Thanks for the report @jeffreycooper. What's your use case for having two different plugins active that both use advanced-cache.php?

#2 @SergeyBiryukov
4 years ago

  • Component changed from Plugins to Cache API

#3 @jeffreycooper
4 years ago

Hello @johnbillion and @SergeyBiryukov ,

Thank you for the edits (first ticket here) on the tickets and the attention to it.

HummingBird and W3TC for example. Another example is Cache Enabler and LiteSpeed cache plugins. These are the ones that got my attention the most. However I am sure there are many other cases for this issue too.

Note: See TracTickets for help on using tickets.