3 ms·
Varnish caches the actual HTTP requests, and speeds up static content substantially by removing the necessity to load up PHP. WP caching speeds up requests tha
by hkarthik 15y ago
Varnish caches the actual HTTP requests, and speeds up static content substantially by removing the necessity to load up PHP.
WP caching speeds up requests that spin up PHP by preventing them from making a connection to the MySQL Database. This is useful for requests that may peruse multiple blog posts, but load the exact same sidebar content by caching things like post counts, categories, tag clouds, etc.
- IanDrake 15y agoReally? That's interesting. I assumed the WP caching was straight page output caching.
- hkarthik 15y agoSome of the cache plugins may just utilize page output caching, but IMO if you're spinning up your language runtime (Ruby, PHP, Python, Java, .NET) just to do page caching, you've already lost. Varnish and even built in Web Server caching can be far more efficient. It's better to use the language runtime for more specific caching inside your application logic and for smarter cache expiration.