Project

General

Profile

Actions

Bug #39506

closed

clear_cacheCmd produces empty log-entry if cacheCmd not set

Added by Christoph Buchli over 11 years ago. Updated over 5 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 #1

Updated by Ralf-Rene Schroeder over 11 years ago

same problem in TYPO3 4.7.x
every modificaltions of a contentelement produces this log entry (don't know if the cache ist flushed or not)

Actions #2

Updated by Wouter Wolters almost 11 years ago

  • Status changed from New to Resolved

This one is resolved with #47181

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF