Project

General

Profile

Actions

Feature #2751

open

Performance: add an object cache

Added by Laurent Opprecht over 12 years ago. Updated almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
05/02/2011
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal

Description

Add a class / facade to abstract existing object's cache - i.e. memcache, apc, etc. with the usual functions add, update, remove, clear cache, etc, would be easier to have them static methods.
add config parameter to set up the cache to use
add a factory method to create the cache based on the config
add a few strategies
add several pools? i.e. a user cache in session and a systtem wide cache a la memcache?
start using it in perf bottleneck: for example system settings?

possible pattern:

in factory method: if the object exist in the cache returns it from the cache, attach cache key to the object,
possibly overload magic method to avoid serializing the key
in update method: if the object is in the cache either clear the cache or update it, whatever works best.

Actions #1

Updated by Stefaan Vanbillemont about 12 years ago

  • Project changed from Chamilo LCMS Connect to Repository
Actions #2

Updated by Stefaan Vanbillemont about 12 years ago

  • Target version set to 2.1.0
Actions #3

Updated by Stefaan Vanbillemont almost 12 years ago

  • Target version changed from 2.1.0 to 55
Actions #4

Updated by Stefaan Vanbillemont almost 12 years ago

  • Target version changed from 55 to Backlog (default)
Actions

Also available in: Atom PDF