- Overview
- Clearing Server-Side Cache (Method 1)
- Clearing Server-Side Cache (Method 2)
- Purging Cloudflare CDN
Overview
To increase performance, site content is cached on the web server. We call this the server-side cache. If AmeriCommerce's Cloudlfare integration is enabled for your site, static content will also be cached on Cloudflare's CDN. If you've made recent changes to products, categories, themes, widget, etc and noticed that these changes are not reflecting on the front-end of the site, this could be due to caching. If so, clearing the server-side cache and purging the CDN will cause the most recent updates to be displayed.
Clearing Server-Side Cache (Method 1)
To clear the application's server-side cache, login to the dashboard and click Tools > Clear Cache:
Note: this method requires software version 2018.1.1322.3+. If you do not see this option under tools, you can submit a support ticket requesting a software update, or use method 2 to clear the server-side cache.
Clearing Server-Side Cache (Method 2)
The application's server-side cache can also be cleared by browsing to the following URL (replacing yourdomain with your store's domain):
https://www.yourstore.com/store/admin/actions.aspx?ClearCache=true
Pro-Tip: Create a browser bookmark to make this easier in the future.
Purging Cloudflare CDN
If AmeriCommerce's Cloudflare integration has been enabled on you're site, there will also be an option to Purge CDN under Tools. Click this link to Purge the CDN:
Comments
5 comments
Would love to be able to clear cache from dashboard with a one button hit - :)
Hey Mary!
There isn't a button in the dashboard, but there is an alternative.
In your browser create a bookmark and set the URL to:
javascript:window.open(document.location.origin + "/store/admin/actions.aspx?ClearCache=true", "_self");
If you are viewing the front of the store, while signed into the dashboard, the cache will be cleared without having to go through the Live Design.
Its usually best to save the bookmark directly to the Bookmark Bar or something like that.
Often clearing browser cache and server cache STILL doesn't show my new code. I've noticed that this is much more likely to happen when it's "behind the scenes" code - head tags, css, and such - but I've seen it with changes to visible elements as well. It's extremely frustrating to have to wait half an hour or more for my changes to show up. Can anything be done?
Hello Kathy!
"I've noticed that this is much more likely to happen when it's "behind the scenes" code - head tags, css, and such - but I've seen it with changes to visible elements as well."
This is actually likely due to your browser caching. Try clearing your browser's cache (ctrl+F5 in most browsers). If that doesn't work, navigate to Themes > Edit Theme > Head Tags and make sure all the CSS file references are using the file path versioned merge code like so:
<link rel="stylesheet" type="text/css" href="##FILEPATHVERSIONED[##THEMEDIR##css/style.css]##">
This adds a query string and a version number to the end of the file path. This lets the browser know if the file has been modified; which forces the browser to request the most up-to-date version of the file.
--Austin
SPOS Support
That's awesome Austin - I will give that a try!!
Please sign in to leave a comment.