Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How is this different from Drupal 7 cache settings on the performance page or using the following modules: memcache, filecache, or apc cache modules for Drupal 7.
I am just trying to better understand it's usage.
Comments
Comment #1
BerdirThose modules are cache backends which allow to cache things in a place other than the default databaes backend.
This module *uses* one of those backends to cache entities, like nodes or users.
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedSo I would use this or another backend.
I was thinking of using file cache or apc cache.
Filecache using files for cache
APC uses APC memory for cache
So will entity cache allow me to cache entities like nodes and then can I use either to direct where the caches are?
Comment #3
BerdirExactly
Comment #5
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedAnd how to tell Entity Cache to use Filecache instead of Database Cache? Something like that?
Comment #6
OldAccount CreditAttribution: OldAccount commented@Wolfgang Reszel, I don't have an entity_cache table in my database, I would double check that. I think you need to enable each individual entity cache bin-- for example, here's how I use Entity Cache and APC together:
Comment #7
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedThanks for the help. It seems to work.
Comment #8
Mario T CreditAttribution: Mario T commented*
Comment #9
delacosta456 CreditAttribution: delacosta456 commentedhi
Please need some extra clarification
By default Filecache module suggest using $conf['cache_default_class'] = 'DrupalFileCache'; WHICH will already offload all bins to location..
How to THEN use together with entity cache
Comment #10
delacosta456 CreditAttribution: delacosta456 commentedComment #11
koushikuk CreditAttribution: koushikuk as a volunteer and commentedHi @Berdir,
Regular drupal 7 cache, memchae, apc and file cache works in different way. Drupal 7 cache works from db level. It stored all cache data in cache tables in blob format and retrieve as required. Now memcache is a memory level cache mechanism. Apc works in php file level and it takes php codes in executable and store in cache so that disk I/O and other server overhead will be reduced. You can get an overview about those from the below link,
https://openconcept.ca/blog/mmallett/apc-varnish-memcache-and-caching-be...