Reducing DB load/need with fastpath file system cache

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Amazon's picture

A file-based caching mechanism for serving up cached Drupal pages instead of using the database 'cache' table. This approach is generally faster since the web server doesn't need to initialize a database connection and crunch through a bunch of PHP files for an anonymous user hit.

This is in release candidate state.

Comments

vs. memcache

RobRoy's picture

Since this does a lot of disk i/o, does this have any benefits over memcache? Or, is this just an alternative if you don't have the hardware for memcache?

Btw, has anyone thought

mfb's picture

Btw, has anyone thought about a hybrid approach? memcache for the most frequently used data, filecache for less frequently used? For very large sites, it seems more sensible to cache most of the HTML out to disk rather than storing it all in memory.

memcache vs. fastpath file cache

kbahey's picture

For d.o, we are already using memcache. I am not sure if it is setup with the db backup option or without that. Perhaps the former.

If it is setup without the db backup option, then that is as fast as you can get (everything in memory, no disk access at all).

If it is setup with the db backup option, then there is still overhead in updating the cache tables.

For RAM starved setups, fastpath may be a better option, since a request that is in cache is handled via Apache without neither Drupal nor the database being involved.

One possible area for improvement is caching for authenticated users, which the advcache module is pursuing.

Drupal development and consulting 2bits.com
Personal Baheyeldin

Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.

i wish

moshe weitzman's picture

For RAM starved setups, fastpath may be a better option, since a request that is in cache is handled via Apache without neither Drupal nor the database being involved.

thats true of boost but not fastpath. fastpath still bootstraps a bit and then serves through php a file that is found on filesystem. fastpath is still great, but not quite as great as you describe.

i am using boost module for

toma's picture

i am using boost module for my multisite setup and its great

We had to disable boost

nathanpalmer's picture

Back when we were on 4.7 we had to disable boost because it somehow got some bad data and was looking for a file that didn't exist. Because of the sheer volume of traffic we were receiving at the time it was less intensive on our server to use the standard drupal cache than for apache to try and and serve the non-existent file over and over again.

Nathan