[TASK] Update caching framework to latest FLOW3 version
authorSusanne Moog <typo3@susannemoog.de>
Sun, 29 May 2011 14:58:28 +0000 (16:58 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Mon, 30 May 2011 20:11:20 +0000 (22:11 +0200)
commitb36b630287851f2cf0eaf2d658457c4a85b11de7
tree51cf99da414dc6635a0b64b4f67c2ef5e68dcbc9
parent9940c93e3641e861d3dbe38f817101d19b1b51f5
[TASK] Update caching framework to latest FLOW3 version

Except to a database structure change of the experimental PDO backend all
changes are backwards compatible for existing extensions usages if the
current API is not misused.

Notable changes:
- A new "context" variable for backends constructors was introduced. In v4 it
  is always set to "production" in production environment and to "Testing" for
  unit tests. Other than that it is unused and was ported to keep v4 and
  FLOW3 in sync.
- File backend now uses different directories for a code and data caches.
- Files created by the file backend have a .php suffix for code caches.
- In file backend, FLOW3 removed the cacheDirectory() method. It is kept
  for v4 to enable us to have cache directories outside of the document root.
- File backend unit tests use vfs (virtual file system). This way no more
  files are created by unit tests in the file system that must be cleaned up.
- t3lib_cache_Manager has a new method injectCacheFactory(), used by
  t3lib_cache_Factory. t3lib_cache, tslib_fe and init.php reflect this change.
- t3lib_cache_Factory calls initializeObject() of frontends and backends if the
  method exists. Some __construct() calls are moved to this method.
- Some code and unit tests now use name spacing for global objects.
- t3lib_cache_Manager has new protected methods to call all configured caches
  on flushCaches() and flushCachesByTag().
- Pdo backend changed its database structure and uses a "context" field instead
  of "scope" now.
- Lots of minor variable renamings, comment changes and annotation fixes.

Change-Id: Ib1be85fbbe0cb198201fb09bbdb9f9e42c097d35
Resolves: #26263
Reviewed-on: http://review.typo3.org/1722
Reviewed-by: Björn Pedersen
Tested-by: Björn Pedersen
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
38 files changed:
t3lib/cache/backend/class.t3lib_cache_backend_abstractbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_apcbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php
t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_nullbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_pdobackend.php
t3lib/cache/backend/class.t3lib_cache_backend_redisbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_transientmemorybackend.php
t3lib/cache/backend/interfaces/interface.t3lib_cache_backend_backend.php
t3lib/cache/backend/interfaces/interface.t3lib_cache_backend_phpcapablebackend.php
t3lib/cache/backend/resources/ddl.sql
t3lib/cache/class.t3lib_cache_factory.php
t3lib/cache/class.t3lib_cache_manager.php
t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php
t3lib/cache/frontend/class.t3lib_cache_frontend_phpfrontend.php
t3lib/cache/frontend/class.t3lib_cache_frontend_stringfrontend.php
t3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontend.php
t3lib/cache/frontend/interfaces/interface.t3lib_cache_frontend_frontend.php
t3lib/cache/last_synched_revision
t3lib/class.t3lib_cache.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_abstractbackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_dbbackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_filebackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_pdobackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_redisbackendTest.php
tests/t3lib/cache/backend/class.t3lib_cache_backend_transientmemorybackendTest.php
tests/t3lib/cache/class.t3lib_cache_factoryTest.php
tests/t3lib/cache/class.t3lib_cache_managerTest.php
tests/t3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontendTest.php
tests/t3lib/cache/frontend/class.t3lib_cache_frontend_phpfrontendTest.php
tests/t3lib/cache/frontend/class.t3lib_cache_frontend_stringfrontendTest.php
tests/t3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontendTest.php
tests/t3lib/cache/last_synched_revision
typo3/init.php
typo3/sysext/cms/tslib/class.tslib_fe.php