Hey everyone! It’s Friday, so you know that means another dev dive. As we head into the holiday season, I want to talk a little bit about one of the most important things to improve performance on the web – cache (pronounced “cash,” not “cash-ay”). Caches are actually used almost everywhere in your computer, down to your CPU. Don’t worry - I won’t get down to that level, but I do want to talk about how caching helps websites.
Browser caching is what’s known as “client-side” – i.e., the cached files are stored on the client (your computer). At Punchmark, we also implement “server-side” caching – cache stored (you guessed it) on the server. Many parts of our platform require getting a lot of pieces of data from different places and putting them all together – config values, item data, HTML templates, etc. This can be costly and take a lot of time. Once we have all of that data together, though, we can store it all in one place as a cache file so that the next time we need the information for that page, we can just grab the cache rather than have to go fetch the data all over again. This helps to take load off of the databases and web servers, which even further increases the speed benefits.
Let me know if you have any questions about caching or have any other topics you’d like to hear about for future dev dives!