DRUPAL_REDIS_PREFIX]; // EntityCache setup. if ((boolean)file_exists('sites/all/modules/contrib/entitycache/entitycache.info') === true) { $conf['cache_entity_node'] = 'Redis_Cache'; $conf['cache_entity_user'] = 'Redis_Cache'; $conf['cache_entity_fieldable_panels_pane'] = 'Redis_Cache'; $conf['cache_entity_file'] = 'Redis_Cache'; $conf['cache_entity_taxonomy_term'] = 'Redis_Cache'; $conf['cache_entity_taxonomy_vocabulary'] = 'Redis_Cache'; } // Higher performance for smaller page counts. This technique does not execute // full Drupal bootstrapping and does not invoke the database, which ignores // database checks such as Drupal's IP blacklist. if (DRUPAL_REDIS_CACHE_MODE == DRUPAL_REDIS_CACHE_MODE_SMALL) { // High performance - no hook_boot(), no hook_exit(), ignores Drupal IP // blacklists. $conf['page_cache_without_database'] = true; $conf['page_cache_invoke_hooks'] = false; // Explicitly set page_cache_maximum_age as database won't be available. $conf['page_cache_maximum_age'] = 3600; // one hour } // Higher hit rate for larger page counts. This technique avoids evictions due // to redis space limitations when your site has a large quantity of pages to // cache. Will conflict with the first which skips the database entirely; do // not use both at the same time. elseif (DRUPAL_REDIS_CACHE_MODE == DRUPAL_REDIS_CACHE_MODE_LARGE) { // Use the database for cached HTML. $conf['cache_class_cache_page'] = 'DrupalDatabaseCache'; } }