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

Berdir’s picture

Status: Active » Fixed

Those 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.

SocialNicheGuru’s picture

Issue tags: +APC, +filecache

So 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?

Berdir’s picture

Exactly

Status: Fixed » Closed (fixed)

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

Wolfgang Reszel’s picture

And how to tell Entity Cache to use Filecache instead of Database Cache? Something like that?

  $conf['cache_class_entity_cache'] = 'DrupalFileCache';
OldAccount’s picture

@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:

$conf['cache_class_cache_entity_file'] = 'DrupalAPCCache';
$conf['cache_class_cache_entity_node'] = 'DrupalAPCCache';
$conf['cache_class_cache_entity_taxonomy_term'] = 'DrupalAPCCache';
$conf['cache_class_cache_entity_taxonomy_vocabulary'] = 'DrupalAPCCache';
Wolfgang Reszel’s picture

Thanks for the help. It seems to work.

Mario T’s picture

Issue summary: View changes

*

delacosta456’s picture

Version: 7.x-1.1 » 7.x-1.x-dev

hi

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

delacosta456’s picture

Version: 7.x-1.x-dev » 7.x-1.1
koushikuk’s picture

Hi @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...