[intro] We have made some changes recently which will result in any changes you make potentially taking up to 10-15 minutes to show on the front end of your EKM online shop. These changes are designed to reduce the stress on our servers by limiting the number of times the cache is cleared.[/intro]
What is a cache?
A cache is in essence a temporary storage area. For example, the files you automatically request by looking at a Web page are stored on your device's hard disk in a cache subdirectory under the directory for your browser. When you return to a page you've recently looked at, the browser can get those files from the cache rather than the original server, saving you time and saving the network the burden of additional traffic.
When is the cache cleared?
If changes are made to a shop, the cache files have to be cleared to ensure the shop content doesn't become out of date. Originally we tried to do this in a very targeted way, so if for example a single product was updated, just the cache file for that specific product was cleared, but this encountered a few problems.
As an example, say a customer updates a product to show it as out of stock. The cache implications for this could be:
1. The cache for the product page needs to be cleared to show the product is out of stock.
2. The cache for the category the product is on also needs to be cleared to reflect this.
3. The product is category managed, so all the other category pages also need to be cleared.
4. The category itself is category managed so all those pages need to be cleared.
5. The customer has an extra show data tag in an element on their About Us page that needs to be cleared.
Because of the simple nature of the caching system and it being so difficult to determine what cache files need to be cleared, we pretty much always have to wipe the entire cache for every change.
Some of the actions that result in the cache being fully cleared include:
1. Any shop content being added, updated or deleted, including products, categories, elements and Webpages. This could be through Shop view, the Import/Export System, Advanced Inventory Manager or the API.
2. A feature being installed or uninstalled.
3. A shop setting being changed.
4. An order being placed on a shop.
What changes have been made?
The recent changes to the caching system introduced a basic queue system for clearing cache files. When the cache needs to be cleared, instead of the entire shop cache being completely cleared there and then, it places the request in a queue to be processed every few minutes. If lots of requests to clear the cache are taking place over a very short period of time, we can determine that something is going on (such as a shop being really busy) that means the cache is in high demand and should be left intact for a little longer. As soon as things quieten down, or a certain threshold of time has passed the cache is then cleared.
This means that a really busy shop now tries to protect the cache files for a little longer when they're really needed and this results in the shop and server performance being faster and much more reliable. The caveat, however, is that this does introduce a short delay to shop changes being reflected on live shops. The cache isn't used in the 'Shop' view, so shop owners editing their shop within this section wouldn't be affected by this.
Now, when you have amended something on your EKM online shop, you'll see a circular arrow to the right of the EKM in the top left-hand of your screen. Click it to reveal this notification:
This indicates that changes have been made and these will be visible on the front end of your EKM online shop very soon.
- Clearing the cache on your browser - Google Chrome
- Clearing the cache on your browser - Firefox
- Clearing the cache on your browser - Internet Explorer
- Clearing the cache on your browser - Edge
- Clearing the cache on your browser - Safari
- Caching on your EKM online shop
[contact] If you need our help with your EKM online shop, contact your Account Manager or Customer Support, who will be able to point you in the right direction. We're open from 8am-6pm weekdays and 9am-5.30pm on the weekends.[/contact]