Download & Extend

Is it necessary to create at least three instances of memcache to use pathcache?

Project:Path Cache
Version:6.x-1.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

i am wondering if it is necessary to create at least three instances of memcache to use pathcache? (I am using memcache set up to run not in the database but in the memory). It works with 3 instances of memcache but i would prefer to have one.

I tried to add in the settings this:

  'memcache_servers' => array(
    'localhost:11211' => 'default',
    'localhost:11211' => 'pathdst',
    'localhost:11211' => 'pathsrc',
  ),
  'memcache_bins' => array(
    'cache' => 'default',
    'cache_pathdst' => 'pathdst',
    'cache_pathsrc' => 'pathsrc',
  ),

but it didn't work - i got logged out and couldn't log in

Comments

#1

If your site is busy enough to use pathcache, there's not really a downside to using 3 bins. The I/O on the memcache daemons gets quite heavy.

#2

The thing was that i didn't know how to set the settings in order to use only one instance, have not seen any example, so in case anybody is searching for that:

  'memcache_servers' => array(
    'localhost:11211' => 'default',
  ),
  'memcache_bins' => array(
    'cache' => 'default',
    'cache_pathdst' => 'default',
    'cache_pathsrc' => 'default',
  ),