Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
memcache
Commits
bb2165f6
Commit
bb2165f6
authored
Sep 13, 2011
by
Robert Vincent
Committed by
Jeremy Andrews
Sep 13, 2011
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1014154
: by pillarsdotnet, README.txt cleanup.
parent
7e308179
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+21
-18
21 additions, 18 deletions
README.txt
with
21 additions
and
18 deletions
README.txt
+
21
−
18
View file @
bb2165f6
...
...
@@ -12,10 +12,8 @@
These are the broad steps you need to take in order to use this software. Order
is important.
1. Install the memcached binaries on your server. See
1. Install the memcached binaries on your server. See for instance:
http://www.lullabot.com/articles/how_install_memcache_debian_etch
2. Install the PECL memcache extension for PHP. This must be version 2.2.1 or
higher or you will experience errors.
3. Put your site into offline mode.
...
...
@@ -24,10 +22,13 @@ http://www.lullabot.com/articles/how_install_memcache_debian_etch
6. Start at least one instance of memcached on your server.
7. Edit settings.php to configure the servers, clusters and bins that memcache
is supposed to use.
8. Edit settings.php to mke memcache the default cache class, for example:
8. Edit settings.php to m
a
ke memcache the default cache class, for example:
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
9. Bring your site back online.
9. Make sure the following line also exists, to protect the special cache_form
bin from being assigned to a volatile cache storage implementation:
$conf['cache_class_form'] = 'DrupalDatabaseCache';
10. Bring your site back online.
For instructions on 1 and 2 above, please see the INSTALLATION.txt file that
comes with the memcache module download.
...
...
@@ -64,7 +65,7 @@ The bin/cluster/server model can be described as follows:
- Servers are memcached instances identified by host:port.
- Bins are groups of data that get cached together and map 1:1 to the $table
param
in
cache_set(). Examples from Drupal core are cache_filter,
param
eter of
cache_set(). Examples from Drupal core are cache_filter,
cache_menu. The default is 'cache'.
- Clusters are groups of servers that act as a memory pool.
...
...
@@ -91,11 +92,12 @@ $conf = array(
Here is an example configuration that has two clusters, 'default' and
'cluster2'. Five memcached instances are divided up between the two
clusters. 'cache_filter' and 'cache_menu' bins go
e
to 'cluster2'. All other
clusters. 'cache_filter' and 'cache_menu' bins go to 'cluster2'. All other
bins go to 'default'.
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_form'] = 'DrupalDatabaseCache';
$conf = array(
'cache_default_class' = 'MemCacheDrupal',
'memcache_servers' => array('localhost:11211' => 'default',
...
...
@@ -129,6 +131,7 @@ NOTE: Session.inc is not yet ported to Drupal 7.
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_form'] = 'DrupalDatabaseCache';
$conf = array(
'cache_default_class' = 'MemCacheDrupal',
'session_inc' => './sites/all/modules/memcache/memcache-session.inc',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment