|
|
|
|
|
by jacques_chester
4664 days ago
|
|
Varnish is not effective in the face of Recent Comments because that widget breaks whole-page caching fatally. Every time anyone leaves a comment anywhere, the entire cache for the entire site is invalid. When I looked at where the slow runtimes were occurring on Linode, it was always jammed on disk I/O and it was always on PHP functions that are reaching into MySQL. In my experience the MySQL query cache + an object cache do more for sites with a Recent Comments widget than whole page caching. As it happens, I do all of the above. And I was doing all of the above. And still getting jammed on I/O. Because MySQL likes to join on disk. Whole page caching is useful only if you prevent that from happening. It's useless if the cache is rendered invalid every few seconds on a chatty site. |
|
There's also the possibility that you had shitty neighbors.