Hacker News new | ask | show | jobs
by antihero 1704 days ago
Can't you just use Varnish?
2 comments

Of course.

You can also write a minimal cache system in just ~2/300 lines of PHP that is still very efficient. So efficient you can even survive a hug of death from HN on a tiny VPS without a blink. I did it.

Yet, people seems so attracted to those bloated "fastest" plugins...

For logged out users, sure (I did). If your users are logged in or you need to process their visit server side, it's a bit harder. AFAIK you can't do fragmented caching with vanilla Varnish.
Side note: To my knowledge the only plugin that supports fragmented caching (specific non-cached portions of PHP) is W3 Total Cache.