Created
December 3, 2012 11:33
-
-
Save sinsunsan/4194356 to your computer and use it in GitHub Desktop.
Memcache settings.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Conf d'aprés post drupal.org | |
| # http://drupal.org/node/1155006 | |
| # to be changed with conf in | |
| # http://www.lullabot.com/articles/installing-memcached-redhat-or-centos | |
| $conf = array( | |
| // The path to wherever memcache.inc is. The easiest is to simply point it | |
| // to the copy in your module's directory. | |
| 'cache_inc' => './sites/all/modules/memcache/memcache.inc', | |
| 'memcache_key_prefix' => 'archirefprod', | |
| 'memcache_servers' => array( | |
| // Sessions cache. | |
| '127.0.0.1:11211' => 'session', | |
| // Default cache. | |
| '127.0.0.1:11212' => 'default', | |
| // Block cache. | |
| '127.0.0.1:11213' => 'block', | |
| // Content cache. Holds fully loaded content type structures. | |
| '127.0.0.1:11214' => 'content', | |
| // Filter cache. Usually the busiest cache after the default. | |
| '127.0.0.1:11215' => 'filter', | |
| # Form cache. | |
| '127.0.0.1:11216' => 'form', | |
| # Menu cache. | |
| '127.0.0.1:11217' => 'menu', | |
| # Page cache. Bigger than most other caches. | |
| '127.0.0.1:11218' => 'page', | |
| # Views definition cache. | |
| '127.0.0.1:11219' => 'views', | |
| # Views data cache (may need to be increased if heavily used). | |
| '127.0.0.1:11220' => 'views_data', | |
| # Views data cache (may need to be increased if heavily used). | |
| '127.0.0.1:11221' => 'update', | |
| ), | |
| 'memcache_bins' => array( | |
| 'session' => 'session', | |
| 'cache' => 'default', | |
| 'cache_block' => 'block', | |
| 'cache_content' => 'content', | |
| 'cache_filter' => 'filter', | |
| 'cache_form' => 'form', | |
| 'cache_menu' => 'menu', | |
| 'cache_page' => 'page', | |
| 'cache_views' => 'views', | |
| 'cache_views_data' => 'views_data', | |
| 'cache_update' => 'update', | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment