CachedObjects v1.2 - cache granularity as you want |
[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/ |
Welcome Guest, Not a member yet? Register Sign In |