Welcome Guest, Not a member yet? Register   Sign In
CachedObjects v1.2 - cache granularity as you want
#1

[eluser]sdbruder[/eluser]
CachedObjects v1.2
cache granularity as you want

CachedObjects is a core extension (MY_Controller and MY_Model extensions) that implements caching at method level at call time.

Apart from extending the MY_ versions, all that you need to do is:
* Declare the time to cache calling methodcache(time_in_minutes);
* call ->mymethodCached(parameters) to cache ->mymethod(parameters);
* WARNING: CachedObjects will use object name, method name and parameter values to hash the cache name. If your method can accept a multitude of diferent values as parameters, you will get a multitude of cache entries. USE IT WISELY!

TODO
* The cache code is replicated in MY_Controller and MY_Model extensions, the bulk of it can be
extracted to a single place to avoid code replication.

In the package, there is a model / view / controller as an example, Open it in your applicaction directory and call http://yourserver/index.php/examplepage/. If you use it in your project, please send an email.

Download: http://sergio.bruder.com.br/cachedobjects/


Messages In This Thread
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-02-2008, 08:16 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-04-2008, 04:29 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-04-2008, 04:51 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-04-2008, 05:07 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-04-2008, 05:28 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-05-2008, 02:26 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-17-2008, 03:32 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-18-2008, 09:28 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-19-2008, 07:09 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-21-2008, 02:06 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-21-2008, 05:38 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-21-2008, 01:50 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-21-2008, 11:00 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-22-2008, 04:55 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-22-2008, 09:20 PM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 09-28-2009, 08:24 AM
CachedObjects v1.2 - cache granularity as you want - by El Forum - 06-07-2010, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB