diff --git a/INSTALLATION.txt b/INSTALLATION.txt index 2262e47d58cba3e80dd10145d61e8c96521143bf..f6588abe204a49430463933a1a6bf8f8c9eaf062 100644 --- a/INSTALLATION.txt +++ b/INSTALLATION.txt @@ -1,7 +1,9 @@ +// $Id$ + Fedora memcache + drupal walkthrough 1) Have a look at the background reading - + A - http://www.danga.com/memcached/ (cache daemon) B - http://pecl.php.net/package/memcache (PHP integration for memcache) @@ -26,13 +28,13 @@ Fedora memcache + drupal walkthrough 1010 yum install php-devel 1011 rpmbuild --rebuild php-pecl-memcache-2.0.4-1.rf.src.rpm -3) Installed RPMS +3) Installed RPMS [root@yoursite ~]# rpm -Uvh /usr/src/redhat/RPMS/x86_64/memcached-1.2.1-4.rf.x86_64.rpm /usr/src/redhat/RPMS/x86_64/php-pecl-memcache-2.0.4-1.rf.x86_64.rpm Preparing... ########################################### [100%] 1:php-pecl-memcache ########################################### [ 50%] 2:memcached ########################################### [100%] -[root@yoursite ~]# +[root@yoursite ~]# 4) Verify configuration. Change if required. @@ -51,7 +53,7 @@ Starting Distributed memory caching (memcached): [ OK ] [root@yoursite ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] -[root@yoursite ~]# +[root@yoursite ~]# Check phpinfo() for memcached status. Mine said @@ -85,7 +87,7 @@ whole $cfg. The example below uses the default localhost:11211 server. $conf = array( 'memcache_inc' => './includes/memcache.inc', ); - [simon@yoursite memcache]$ + [simon@yoursite memcache]$ 8) Enable the drupal module from /admin/build/modules (it's in the "Other" section) diff --git a/README.txt b/README.txt index 66bc30aa05fe064716fc10bd414bf8d93c0d100b..22d91b5815b61b8e00074714da169e9bf062452a 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,5 @@ +// $Id$ + ## INSTALLATION ## To install, move memcache.inc to your DRUPAL/includes directory (where the @@ -48,14 +50,14 @@ bins go to 'default'. $conf = array( 'cache_inc' => './includes/memcache.inc', - 'memcache_servers' => array('localhost:11211' => 'default', - 'localhost:11212' => 'default', - '123.45.67.890:11211' => 'default', - '123.45.67.891:11211' => 'cluster2', + 'memcache_servers' => array('localhost:11211' => 'default', + 'localhost:11212' => 'default', + '123.45.67.890:11211' => 'default', + '123.45.67.891:11211' => 'cluster2', '123.45.67.892:11211' => 'cluster2'), - 'memcache_bins' => array('cache' => 'default', - 'cache_filter' => 'cluster2', + 'memcache_bins' => array('cache' => 'default', + 'cache_filter' => 'cluster2', 'cache_menu' => 'cluster2'), ); diff --git a/memcache.inc b/memcache.inc index 7aa0e9e3cc96c3b6b575044a89a7f2cf19f2b8b9..aa12d377f677302cc7c3cf686f3fe8efc125f098 100644 --- a/memcache.inc +++ b/memcache.inc @@ -1,5 +1,5 @@ array(), 'set' => array(), 'hit' => array()); diff --git a/memcache.install b/memcache.install index 70deca8730568bcc145d55ec82c63ef8eb015dda..57b441116a35a3c82ef28259d8d09dfc7b4d40b7 100644 --- a/memcache.install +++ b/memcache.install @@ -1,4 +1,5 @@