Tuesday 13 June 2006 4:18:00 am
The database solution has one drawback. While storing cache files in the database does not seriously affect your site's performance, storing image and binary files does. It is significantly slower to serve these files from a database than from a filesystem.
The solution is to use a Squid reverse proxy. This ensures that images and files are cached in Squid the first time they are served. This also makes serving images, files, CSS and JavaScript files much faster than with Apache. It also reduces the load on the Apache servers, allowing them to focus on serving dynamic pages.