• Resolved Pieter Sand

    (@beachholiday)


    Dear Support,

    Thank you for making a great plugin available on WordPress.org. We have seen your plugin make a real difference to our sitespeed 🙂

    We have three questions that puzzle us:

    1. Subdomain:
      How should Super Page Cache be set up on staging subdomain? We are currently using the Global API setup method both on the live http://www.site.com website and the staging.site.com site. Is this correct or should we be using the API key method? Are there downsides to using the Global API setup on a subdomain, e.g. when the Cloudflare cache is cleared on the subdomain, it also clears it for the live website.
    2. Page Rules:
      We haven’t seen Super Page Cache plugin change the Page Rules within Cloudflare. Within Cloudflare, there are only two page rules which we set up manually. Is this correct?
    3. Cache Rules:
      Within the Cache Rules section, we see only one rule that states in its title “[DO NOT EDIT] WP Super Page Cache Plugin rules for …”. In our case this set of rules is only there for the staging.site.com subdomain.
      There are two others cache rules which have been created according to the guide ‘Implementation Guide for using “Remove Cache Buster Query Parameter” feature’ on this page:
      https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2

    Many thanks for your help with these questions.

    Piet

Viewing 4 replies - 1 through 4 (of 4 total)
  • soarerobertdaniel7

    (@soarerobertdaniel7)

    Hello,

    Here are some answers for you questions:

    1. The Global API token is used only for accessing Cloudflare services for the selected domain on the plugin dashboard. When you press Purge Cache, we send a request to Cloudflare to purge the cache for that domain.
    2. Inside the Rules tab, we set only the Cache Rules marked with [DO NOT EDIT] WP Super Page Cache Plugin rules for. Setting up the rules manually is for cases when you have something complex that our plugin does not cover.
    3. Just to confirm — was the plugin only used in the staging environment, and were the other two rules manually added on the live site? If you want these rules to be applied automatically, you’ll need to install the plugin on the live site as well. However, be sure to delete the manually created rules if you plan to replace them with ones generated by the plugin, to avoid any potential conflicts.

    Thank you!

    Thread Starter Pieter Sand

    (@beachholiday)

    Dear @soarerobertdaniel7

    Many thanks for your reply and guidance. I very much appreciate it 🙂

    We are comparing Cloudflare APO (active on the live site) with Super Page Cache (on the staging site).

    We have now de-activated the ‘Page Rules’, as I understand they have been superseded by Cloudflare’s new Cache Rules.

    Reading your reply, it sounds like we should also de-activate the manually created Cache Rule for using the “Remove Cache Buster Query Parameter” feature that we created per the guidelines on this page:
    https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2

    Did I understand this correctly?

    When looking at the header of the staging site, it looks like both Cloudflare APO and Super Page Cache are active at the same time on the staging site. How can this be avoided?

    Many thanks for your help with this.

    Piet

    soarerobertdaniel7

    (@soarerobertdaniel7)

    Reading your reply, it sounds like we should also de-activate the manually created Cache Rule for using the “Remove Cache Buster Query Parameter” feature that we created per the guidelines on this page

    Yes. That guide was created before we added the support for Cache Rules in Rules. Old versions of the plugin were using this feature: https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-everything/

    When looking at the header of the staging site, it looks like both Cloudflare APO and Super Page Cache are active at the same time on the staging site. How can this be avoided?

    Are both of them installed on staging? Our plugin only creates the Cache Rule (prefixed with [DO NOT EDIT] WP Super Page Cache Plugin). If you were using Cloudflare APO before on staging, maybe some settings are still in place.

    Thread Starter Pieter Sand

    (@beachholiday)

    Dear @soarerobertdaniel7

    Many thanks for your replies above. They are very helpful.

    Cloudflare APO is only installed on the live website (www.site.com) and Super Page Cache is only installed on staging.site.com.

    However, I noticed within the settings for the Cloudflare Plugin on the live website, the following:
    Note: APO runs against the following list of hostnames: http://www.site.com, site.com

    In other words, it looks like APO is automatically installed on the root domain, which explains why it would also run on staging.site.com

    This would explain why we can’t test Super Page Cache on staging.site.com while we have CF APO installed on the live site: http://www.site.com

    Would you be aware of a solution or workaround?

    Many thanks for your help.

    Piet

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.