Hello,
Here are some answers for you questions:
- 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.
- 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.
- 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!
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
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.
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