how to enable memcache on only some drupal core $table ??

ball.in.th - July 28, 2009 - 09:27
Project:Memcache API and Integration
Version:6.x-1.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

I would like to use the drupal core cache tables and would like to enable memcache just on 'cache_page', 'cache_block', and 'cache'. What should I do to accomplish that? Or is it possible to do that at the moment? Any help would be appreciate. ^ ^

#1

kbahey - July 28, 2009 - 16:22
Status:active» postponed (maintainer needs more info)

create a copy of memcache.inc, and called memcache-custom.inc.

In the cache_get() and cache_set() functions, change the code to check the $table name and if it is not one of the above, it returns with an appropriate return code.

#2

ball.in.th - July 28, 2009 - 19:32

thanks for a quick reply. ^ ^

 
 

Drupal is a registered trademark of Dries Buytaert.