Project

General

Profile

Feature #2751

Performance: add an object cache

Added by Laurent Opprecht over 8 years ago. Updated over 8 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.

History

#1

Updated by Stefaan Vanbillemont over 8 years ago

  • Project changed from Chamilo LCMS Connect to Repository
#2

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version set to 2.1.0
#3

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version changed from 2.1.0 to 55
#4

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version changed from 55 to Backlog (default)

Also available in: Atom PDF