Hacker News new | ask | show | jobs
by ehnto 2062 days ago
A Full Page Cache is the way to go, you're going to run into far fewer edge cases and cache bugs. For something simple like a blog, you shouldn't be hitting PHP at all once the cache is warmed, let alone caching queries and snippets and whatnot, bugs waiting to happen.

The strategy is the same even for complex sites, full page cache at the server daemon for almost every page hit unless a user is doing an action that isn't "View this page".

Obviously I'm glossing over cache busting strategies and how you handle dynamic actions like add to carts, sessions etc, but they're all far more simple than rolling your own application level caching strategy.

You will get so much more out of your hosting if using an FPC, which gives you way more headroom for the requests that do need to spin up the application.