Bug #39506
closedclear_cacheCmd produces empty log-entry if cacheCmd not set
0%
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