• Resolved rdanamcd

    (@rdanamcd)


    Is there a way to Not cache a sub domain. For example, I do not want to cache dev.example.com but do want to cache test.example.com and https://www.example.com.

    In the “Prevent the following URIs to be cached” I put in “dev.*” but didn’t seem to work. Should I be doing something different?

    Thanks Dana

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi, by default when you setup the plugin on a specific site it gets setup for that site only. So, of you set it up on www.example.com then the page cache will only work for that and not any other subdomains.

    If you would like to setup page cache on a sub domain you need to install the plugin separately there.

    Thread Starter rdanamcd

    (@rdanamcd)

    Thanks for the response. We host all our sites on Pantheon.io and you can only install plugins in the DEV environment. All code is then pushed via GIT to the TEST environment for testing. Then ultimately pushed to the LIVE environment when everything works great. The database and content we sometimes clone from LIVE to DEV to work with updated content.

    I think should be fine. I’ll just remember to turn off Full Page Caching every time we wipe the DEV environment and clone the database & content from LIVE where caching would be on.

    Would be nice though to always have set to not cache sub domain “dev.*”.

    Thanks

    Dana

    Plugin Contributor iSaumya

    (@isaumya)

    Well, that’s a wired way of installing a plugin. But anyway, the plugin is built to be installed on each site separately whether main domain or sub domain.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Do not cache sub domain’ is closed to new replies.