Refactor Cache::__construct so that it's easy to pass options to cache

Damien Tournoud - January 27, 2009 - 17:33
Project:Cache Router
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Currently the cache engines takes their configuration directly from $conf. This makes it difficult to create them programmatically.

#1

Damien Tournoud - January 27, 2009 - 17:37
Status:active» needs review

Here is the patch.

AttachmentSize
365065-refactor-cache-construct.patch 5.39 KB

#2

David Strauss - January 27, 2009 - 17:44

Subscribe.

#3

andypost - March 24, 2009 - 00:16

Nice idea! One step to pluggable cache... per-user configurable storage

#4

andypost - March 24, 2009 - 00:25

Suppose every backed should have static method to provide info about own's config:
memcache - servers with params
file - folder
apc, eacc, xcache - none.. but maybe sometime

cacherouter.module already have admin section with statistics so another tab with options (settings) or per statistic-backend link to it's own settings

I will return to this latter with code but first better talk about that

#5

slantview - September 3, 2009 - 09:33
Status:needs review» fixed

Applied patch to 5/6/7 branches. Should make it easier to extend cache router to do dynamic cache creation. Should be interesting what comes from this.

Thanks a ton.

#6

System Message - September 17, 2009 - 09:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.