Closed (fixed)
Project:
Entity cache
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 22:33 UTC
Updated:
4 Jul 2019 at 05:56 UTC
Jump to comment: Most recent
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 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 commentedAnd how to tell Entity Cache to use Filecache instead of Database Cache? Something like that?
Comment #6
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 commentedThanks for the help. It seems to work.
Comment #8
Mario T commented*
Comment #9
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 commentedComment #11
koushikuk 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...