So you’ve just purchased a subscription to your shiny new CDN, and set it up on your site. You wait a short while and check the “hit percentage” tab on your CDN dashboard (different hosts might call it something else). And you’re disappointed to see <50% hit ratio! Many CDN providers say that they offer […]
I Don’t Immediately Update All WordPress Components. Shocked?
It seems that every day there’s a new story about someone’s site getting hacked. Typically, these stories are light on details about how exactly the site was compromised. What was the attack vector? Did it involve a rogue editor or author, or was it a brute force attack? Is there anything we as users could […]
How to Implement “Stale-While-Revalidate” on your Website
Lately, I’ve been much concerned with improving my cache-hit ratios on CDNs. And I recently discovered the “stale-while-revalidate” directive. While a CDN like Cloudflare is easy to set up and use, they don’t provide much in the way of statistics. Specifically, you can’t easily get cache hit ratios for static assets, because we don’t know […]
Add Code To WordPress Body Tag With Version 5.2
WordPress has a number of “hooks” that you can use to insert code into different parts of the theme. These hooks remove the need to manually modify the theme files. Using this, we can do all kinds of cool things like inserting custom content into the header, the title, and the footer. For example, I’d […]
Should You Enable Comments On Your Website?
The past few years have seen a dramatic change in the way conversations evolve around web articles. At first, before social media, the only avenue was the comments section underneath the article. Then much of the conversation began to revolve around the distribution channels – like Facebook comments. If you want to disable or enable […]
How To Rewrite Your WordPress URLs To Point To A CDN
Subscribing to a CDN is just half the battle. The next challenge is finding a way to rewrite the URLs of all your static assets to the new CDN URL. In this article, I’ll share the best plugin I’ve found for the job, and why other solutions don’t work. Note that you don’t need to […]
Patch WordPress Without Upgrading Using NameHero
It’s no secret that people don’t upgrade WordPress, even when they should. We usually put this down to laziness or ignorance, but believe it or not, there are sometimes valid reasons to hold off on the upgrade. Valid business reasons. But of course, that comes at a price. And sometimes that price is higher than […]
2 Approaches To Keep WordPress Free Of Malware
As your website becomes more popular, it becomes a higher priority target for hackers. You might not have too much to lose at the beginning of a business’s lifecycle, but when it starts generating revenue, the costs of being hacked increase dramatically. There are several ways in which your website can be compromised like: Unauthorized […]
How To Prevent Bots From Hammering Your Login Page
At some point in your site’s journey, you become important enough to start getting hit by spambots. I don’t know exactly what the limit is, but it always happens. This can take many forms – rogue crawlers, comment spam, and login spam. Of these three, by far the last one is the most annoying. You […]
Why AMP Pages Might Be A Bad Idea For Your Site
We all have experience with AMP pages, whether you realize it or not. Google is trying to make the web a more uniform experience, where the only distinction between website is the content – not the speed, or ads, or any of the other quirks that normally hinder the experience of a website. As a […]
