Download & Extend

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

Project:Cache Router
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

Status:active» needs review

Here is the patch.

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

#2

Subscribe.

#3

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

#4

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

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

Status:fixed» closed (fixed)

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

nobody click here