• Resolved landwire

    (@landwire)


    Hi there,
    is it somehow possible to disable caching on a local environment? Is it enough to set WP_CACHE to FALSE?

    I do not mean deactivating the plugin, as I want to be able to set the settings etc. for the staging/production site locally. But maybe a filter/hook that I can call so that caching is disabled in a certain environment.

    Something that could be added maybe to functions.php or to some other file.

    Other question:
    What is the best way to export plugin settings to use across different sites?
    Or is there a way to pass a settings array via a filter and I can do it totally programmatically? That would be my ideal scenario.

    Thanks,
    Sascha

Viewing 1 replies (of 1 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Yes, setting the WP_CACHE directive to false in your wp-config.php file will prevent the Cache Enabler plugin from caching your pages.

    If you have a few websites the easiest way is to simply define the settings manually. If you have many websites you can fork the plugin and define your custom settings in the _get_options() function.

Viewing 1 replies (of 1 total)
  • The topic ‘Disabling cache-enabler on local environment and setting settings in code’ is closed to new replies.