New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear CDN Cache button + option to clear CDN cache via "Clear Cache" toolbar button #488
Comments
👍 for this. |
👍 |
Mmmhm. So while this feature is in development, we need to empty the CDN cache manually or use custom cache-busting version strings with |
Current help text in the CDN configuration panel says "Or, if you ask ZenCache to invalidate the CDN cache (e.g. a manual clearing of the CDN cache); the internal counter is bumped then too." Hence the confusion in #521. |
@lkraav You're quite correct. That is misleading, as the Clear Cache button does not currently invalidate the CDN cache. Thanks for pointing out that text!
The easiest way to invalidate the CDN cache right now would be to simply change the |
Next Actions (Step 1)Create
|
@jaswsinc @raamdev Submitting PR for step 1: wpsharks/comet-cache-pro#134 |
Great! Before we move to the next step here we need Raam to merge the existing PRs that are pending. I'll come back to this next week at some point and outline the next step. |
Next Actions (Step 2)
|
Next Actions (Step 3)
|
Beautiful! :-) |
Next Actions (Step 4)
|
Next Actions (Part 4 Continuation)
|
On deck: Final Step 5 JavaScript for |
Next Actions (Final Step 5)
|
@raamdev @jaswsinc Submitting Pull Requests for: Step 4: wpsharks/comet-cache-pro/pull/140 I added notes on each PR to indicate that it is part of a larger picture |
@kristineds Excellent! That should just about do it. You can go ahead and label all of your open PRs for this issue as "ready to merge" and send Raam a note to let him know it's time for these to be reviewed, merged, and tested by us all. |
@raamdev All PRs (Step 1 - 5) submitted for this issue are ready to be reviewed, merged, and tested by all of us. i.e. All work have been completed. Pull Request Summary: |
@kristineds Woohoo! Nice work! Thanks. :-) I'l start reviewing those PRs now. |
@jaswsinc I'm testing this new feature and I noticed that while there's a new option under "Manual Cache Clearing", there's no corresponding option under "Automatic Cache Clearing". I also tested automatic cache clearing with the "Clear CDN Cache Too?" set to Yes inside Manual Cache Clearing, and it appears that the CDN Cache does not get cleared when an automatic cache clearing event occurs (for example when you change a setting in WordPress General Settings). Do you agree that there should be another option inside Automatic Cache Clearing for this? |
I'm not against there being an option for this, no. However, it would be my opinion that the CDN cache should not be cleared automatically unless there is a definitive reason for doing so. When the CDN cache is cleared, it forces your visitors to download a whole new set of resources; e.g., JS/CSS/images, etc. So unless the file system is changing, or a site owner chooses to do this manually, I think it's not a good idea. Currently, the only time ZenCache will clear the CDN Cache automatically is when you update a theme, plugin, or WordPress itself; i.e., when we know the file system is changing in some way. |
I agree. And in that case, the "Clear the CDN Cache Too?" setting inside Manual Cache Clearing should default to "No", not "Yes", as it does now.
Or when you click the "Clear Cache" button. As noted above, the current default (tested with |
I agree. I'm not sure why I defaulted that to being enabled. Referencing this line. |
This has been updated. The default for the "Clear the CDN Cache Too?" option is now disabled: wpsharks/comet-cache-pro@3df5d48 |
Next Pro Release Changelog:
|
Cool. TY. |
ZenCache Pro v151002 has been released and includes changes from this GitHub Issue. See the ZenCache Pro v151002 release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#488). |
There should be a "Clear CDN Cache" button inside the Static CDN Filters panel that allows a site owner to clear the CDN cache.
Along with that, there should be a new option inside the "Clearing the Cache" panel that allows you to specify that you'd like to clear the CDN cache whenever you click the "Clear Cache" button.
By default, you'd have to go into Static CDN Filters and click the "Clear CDN Cache" button to clear your CDN cache, but for site owners (like myself) who rarely click "Clear Cache" but who want to know that when they click that button, everything gets cleared, having an option to do that would be nice.
Related: #486
The text was updated successfully, but these errors were encountered: