Project

General

Profile

Actions

Bug #19366

closed

Selecting by tag using wildcards does not work with database disposal of t3lib_cache

Added by Oliver Hader over 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-09-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

This issue concerns only the TYPO3 4.3 development branch.

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*'));

The variable $elements will have no items since the asterisk is not handled/converted correctly for the SQL query.

(issue imported from #M9408)


Files

0009408.patch (1.45 KB) 0009408.patch Administrator Admin, 2008-09-22 16:38
0009408_v2.patch (1.43 KB) 0009408_v2.patch Administrator Admin, 2008-09-24 12:56

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19385: SQL LIKE wildcards are not escaped correctly for list queriesClosedOliver Hader2008-09-28

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

Committed to Hackontest SVN branch
Still pending for Trunk!

Actions #2

Updated by Oliver Hader over 15 years ago

Committed to SVN Trunk (rev. 4267)

Actions

Also available in: Atom PDF