extend usage of in-class cache in Tinebase_Container
authorLars Kneschke <l.kneschke@metaways.de>
Wed, 15 Apr 2015 03:16:57 +0000 (05:16 +0200)
committerLars Kneschke <l.kneschke@metaways.de>
Thu, 16 Apr 2015 07:38:14 +0000 (09:38 +0200)
commit89b2c97cb6d8b0da9927f3cdea348a4eed703b87
tree68f592cab19366179b5c5536ce9c59d48fc1c671
parent9275db423ef6c5438615def5a7eabf877e92a547
extend usage of in-class cache in Tinebase_Container

* added separate per request cache class
* added in-class caching to all important functions in
Tinebase_Container
* made Tinebase_Container::hasGrant cheaper (easier to cache and
simplified database query)
* use Zend_Cache as fallback if Tinebase_Cache_PerRequest::$_usePersistentCache is true

Change-Id: I75fa4abfc1601448cd30496cfca289eb81b8bfaf
Reviewed-on: http://gerrit.tine20.com/customers/1831
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Reviewed-by: Lars Kneschke <l.kneschke@metaways.de>
tests/tine20/Crm/Export/AbstractTest.php
tests/tine20/Filemanager/Controller/DownloadLinkTests.php
tests/tine20/TestCase.php
tests/tine20/Tinebase/ContainerTest.php
tine20/Tinebase/Backend/Sql/Abstract.php
tine20/Tinebase/Cache/PerRequest.php [new file with mode: 0644]
tine20/Tinebase/Container.php