Project

General

Profile

Actions

Bug #39506

closed

clear_cacheCmd produces empty log-entry if cacheCmd not set

Added by Christoph Buchli over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-08-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Sometimes, e.g. when you hide/unhide a content-element in the be via db_layout-Request, t3lib_TCEmain->clear_cacheCmd is called even if there's nothing to clear.

This produces an Entry in the Cache-Log like:

User cbuchli has cleared the cache (cacheCmd=)

The proper solution obviously would be to just not call clear_cacheCmd if the argument is empty:
typo3/tce_db.php:242:
+ if (!empty($this->cacheCmd)) {
$this->tce->clear_cacheCmd($this->cacheCmd);
+ }

Since I don't know if this is the only place where it could happen and since clear_cacheCmd sould consider this problem regardlessly, I assume it would be better to fix it there. (see attached .diff).

=> What do you think?


Files

t3lib.diff (579 Bytes) t3lib.diff diff for suggested solution Christoph Buchli, 2012-08-03 11:39
Actions

Also available in: Atom PDF