[TYPO3-core] RFC: Bug #9408: Selecting by tag using wildcards does not work with database disposal of t3lib_cache

Oliver Hader oliver at typo3.org
Mon Sep 22 16:44:47 CEST 2008


This is a SVN patch request.

Problem:
When trying to select cached records by a tag containing wildcards, the 
new caching framework does not work for the database disposal.

Example:
$cache = $GLOBALS['TYPO3_CACHE']->create(
   'whateverItMightBe',
   't3lib_cache_VariableCache',
   't3lib_cache_backend_Db',
   array(...)
);
$cache->save('elementIdentifier', $content, array('someTag'));
$elements = $cache->loadByTag(array('someTag*'));

Solution:
The asterisk "*" has to be converted for the SQL LIKE statement to "%".

Bugtracker references:
http://bugs.typo3.org/view.php?id=9408

Branch: Trunk


olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009408.patch
Type: text/x-diff
Size: 1485 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080922/55b6f5e2/attachment.patch 


More information about the TYPO3-team-core mailing list