I posted this forum post:

http://drupal.org/node/1548912

I would like to know the differences between file cache and memory caches used in Drupal. It's unclear to me where the strengths and weaknesses are in each. Any help would be appreciated!

Comments

ywarnier’s picture

I'm curious about this one too. As far as I know, the file-based cache would have the advantage of being a resilient cache (like if the power goes away, it stays) and being less likely to be filled (and generate swapping of some sort). Also, under Linux systems, filesystem caching is very aggressive, so the most-required files will be stored in RAM anyway.

On the other side, database tables can be stored in memory as well (but it might be a little more difficult to setup), so I'm a bit suspicious about the real interest of file-caching, but I'd be glad to hear more about it.

ogi’s picture

Status: Active » Fixed

Database cache or even memcache have too many indirection levels. Please read my comment in a thread about performance.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.