Project

General

Profile

Actions

Task #26263

closed

Update caching framework to latest FLOW3 version

Added by Christian Kuhn over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Caching
Target version:
-
Start date:
2011-04-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

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

otable 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
persisted files are created by unit tests in the file system that must be
cleaned up afterwards.
- 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(). Its usage in v4 will be enabled with
a separate patch.
- 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.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #25119: performace of cachingframeworkClosed2011-06-202011-06-20

Actions
Blocked by TYPO3 Core - Bug #26230: Add unit tests for t3lib_div::mkdir_deepClosedChristian Kuhn2011-04-24

Actions
Precedes TYPO3 Core - Bug #26499: Caching framework: Remove flushByTags() and findIdentifiersByTags()Closed2011-04-29

Actions
Actions

Also available in: Atom PDF