• Hi,

    I need to add custom content to advanced-cache.php file, but after awhile the content got removed, what left is content added by W3 cache so I guess it’s the plugin doing.

    How can I prevent that?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    We indeed replace the file to be sure the file is correct. We do that when you click save settings.

    After the replacement, an action is called, “w3tc_environment_fix_on_wpadmin_request”. You could use that action to add your custom code to the file. that should solve your issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent W3 overwrite advanced-cache.php?’ is closed to new replies.