We may abstract the caching mecanism.

   Something like:

   class Cache
   class ApcCache extends Cache
   class MemCache extends Cache
   class DatabaseCache extends Cache
   class SessionCache extends Cache
   class EmptyCache extends Cache //Empty pattern
   ...

   With a factory method inside the Cache class. If the cache is not
   available - because memcach is not installed for example - then we
   can return the Empty cache that does nothing or defaults to anoter
   implementation.

That would make Chamilo independant from specific cache implemenation yet providing the service for those applications that need it.

Le 26.04.2011 12:26, Sven Vanpoucke a écrit :
I would not use memcached or another tool for caching because this would mean that we would demand yet another package to be installed on the server before chamilo can be used.


--
____________________________________
Meilleures salutations

Laurent Opprecht

chat: laurent.oppre...@gmail.com
blog: http://ciel.unige.ch/

<<attachment: laurent_opprecht.vcf>>

_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

Reply via email to