• Resolved rdhutchins

    (@rdhutchins)


    Hello- when I am developing, I usually pull a copy of the site to a locally running instance on my machine. I’m not sure what the plugin is trying to do when the site URL is not a publicly available URL… It seems like it might create the Cloudflare Cache Rule anyway – is the preloader going to try to fill cache with my local copies? (I do not want this, obviously…) Does the plugin have to be removed from local dev instances? Does it respect WP_ENVIRONMENT_TYPE = development ?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Poonam Namdev

    (@poonam9)

    Hi @rdhutchins,

    The plugin does not check WP_ENVIRONMENT_TYPE, so it won’t automatically disable itself on local/development environments.

    That said, you don’t need to remove it, just don’t connect it to Cloudflare on your local instance (skip entering the API token/Zone ID). Without a Cloudflare connection, no cache rules will be created and the preloader won’t run.

    If you do have Cloudflare credentials configured locally, the preloader would make HTTP requests to your local URLs, but since Cloudflare can’t proxy local traffic, it would never actually populate the CDN cache, so no harm to your live site.

    The safest and simplest approach for local dev: leave the plugin installed but unconfigured.

    Let us know if you have other questions.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.