Menu

Snippets

Yet another programmer blogging about code

Posts Tagged ‘caching’

Configure WP Super Cache

Tuesday, January 2nd, 2018

Page caching is important for the performance of your WordPress website. Here’s how to configure WP Super Cache to serve up your site’s content from the cache, without bogging down your server. (more…)

Use Autoptimize effectively

Thursday, November 6th, 2014

Keeping your WordPress website fast can become pretty tricky once you start installing plugins and off-the-shelf themes. Everything seems to want to load at least one CSS stylesheet, and sometimes a dozen or more JavaScript script files. Some also inject great chunks of CSS and JavaScript into every page. Luckily, there’s the handy Autoptimize plugin to help you sort all of that out. (more…)

sessionStorage with expiry time

Saturday, November 16th, 2013

Session storage is a very handy tool for caching content fragments retrieved via AJAX. Once we’ve pulled the content once, and stuffed it into session storage, we can access it again quickly without the overhead of a round trip to the server. But what if we want to limit the age of that content, so that it expires before it gets too stale? (more…)