Skip to content

Instantly share code, notes, and snippets.

@alexweber
Created March 7, 2014 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexweber/9416449 to your computer and use it in GitHub Desktop.
Save alexweber/9416449 to your computer and use it in GitHub Desktop.
settings.php alta performance (apc + memcache + authcache)
<?php
# APC.
$conf['cache_backends'][] = 'sites/all/modules/contrib/apc/drupal_apc_cache.inc';
// $conf['cache_class_cache'] = 'DrupalAPCCache';
$conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';
# Memcache.
$conf['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['lock_inc'] = 'sites/all/modules/contrib/memcache/memcache-lock.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_key_prefix'] = 'projeto_foo';
$conf['memcache_stampede_protection'] = TRUE;
# Authcache.
$conf['cache_backends'][] = 'sites/all/modules/contrib/authcache/authcache.cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/contrib/authcache/modules/authcache_builtin/authcache_builtin.cache.inc';
$conf['authcache_p13n_frontcontroller_path'] = 'authcache.php';
# Cache de DB para forms.
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment