Caching oembed with nginx
When we post a blog link on Mastodon, caching pages might not be enough, thanks to oembed requests — so cache those too with nginx fastcgi cache.
When we post a blog link on Mastodon, caching pages might not be enough, thanks to oembed requests — so cache those too with nginx fastcgi cache.
Purge the whole nginx fastcgi cache from WordPress when nginx and PHP run as different users.
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.
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.
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?