Download & Extend

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

Project:Memcache API and Integration
Version:6.x-1.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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. ^ ^

Comments

#1

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

thanks for a quick reply. ^ ^

#3

Status:postponed (maintainer needs more info)» fixed

If you don't want to edit the code, try the cache router module. I believe it was designed in part to allow for this.
http://drupal.org/project/cacherouter

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.