• Resolved Chris

    (@web2guru)


    This is for a private site that requires a membership to be viewed, and it’s more about the backend anyway. Everything works fine, but another plugin is complaining because it sees that WP_CACHE is set to true in the wp-config and wants me to change one of it’s settings so that it works when pages are being cached.

    However, I’m not using the page caching feature here (since it’s members only and we don’t want any pages to be cached in this case). I am using the other features of W3 Total Cache though and prefer it to the alternatives.

    If the Page Caching feature of W3 Total Cache is disabled, should the WP_CACHE setting still be set to true? I’m guessing it’s added as long as the plugin is active, even though the caching feature is disabled.

    I know I could remove the setting, but I assume it would just get added back eventually.

    Is there a way I can tell W3 Total Cache not to add the WP_CACHE setting?

    Is there a reason it’s needed even though the page caching feature is not enabled?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @web2guru

    Thank you for your question and I am happy to assist you with this.
    The W3 Total Cache adds the constant in wp-config.php once installed/enabled.
    To answer your question, no W3TC does not remove the constant once the Page Cache is disabled as it would not make any sense to add it and remove it every time the option is enabled/disabled.
    So the only way is to do it manually and remove the lines added by W3TC. Since you have a specific use-case.
    You may of course see the notification in the plugin dashboard that the constant is not defined as it’s needed for Page Caching.
    However, If the Page Cache is disabled, nothing will be cached and I am not sure why the other plugin is complaining about the constant.
    Thanks!

    Thread Starter Chris

    (@web2guru)

    Hi Marko, thanks for the info.

    So if I remove that line, is W3TC not going to automatically add it back? If so, that’s an option, but it sounds like either way there will be an unnecessary notification somewhere.

    I disagree with the idea that it would not make any sense to add it and remove it every time the option is enabled/disabled. I do not believe this is an option that would be changed that often. That’s just my opinion though.

    The other plugin is a statistics plugin that can use a different method of tracking if caching is enabled, but the default method is preferred if pages are not being cached.

    Thanks for the info though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Cache Disabled But WP_CACHE Still Defined’ is closed to new replies.