• Resolved Tim Reeves

    (@tim-reeves)


    I am using iThemes Security, activated most of its possibilities including monitoring the website files for changes. This works fine, when WP / Themes / Plugins get updated – BUT I often get an eMail when ostensibly nothing has changed, always that the advanced-cache.php file has been changed, although I have not done anything to the site. This happens on many sites, I manage quite a lot.

    Of course I can make it an exception in the monitoring – but before I do I would like to know what is happening. Can someone tell me? Thanks in advance!

    Tim Reeves

Viewing 1 replies (of 1 total)
  • @tim-reeves The wp-content/advanced-cache.php file is special in WordPress in that it’s designed to be created and maintained by a WordPress caching plugin (all WordPress caching plugins use this file, which is why you can’t run two WordPress caching plugins at the same time — they’d both try to write to this file).

    Since the file is intended to be dynamic (i.e., it may or may not exist, and it may or may not contain what the active caching plugin expects to be in there), it’s important for the active caching plugin to ensure that only its own caching code is inside that file. If somebody deletes the advanced-cache.php file, the active caching plugin needs to make sure that it still exists.

    So, Comet Cache, for example, will automatically check that the file exists and is not empty upon every WordPress init. Any time Comet Cache is upgraded or activated, it will create or replace everything in that file with an up-to-date copy. It will also update the advanced-cache.php file whenever the Comet Cache options are saved (as changing options may affect what needs to be in that file).

    I hope this explains everything. Let me know if you have any other questions.

    • This reply was modified 8 years, 5 months ago by Raam Dev. Reason: Correcting links
    • This reply was modified 8 years, 5 months ago by Raam Dev. Reason: Spelling mistake
Viewing 1 replies (of 1 total)
  • The topic ‘wp-content/advanced-cache.php frequently changed’ is closed to new replies.