Issue Bug Closed

#39506clear_cacheCmd produces empty log-entry if cacheCmd not set

Anonymous 08/03/12, 11:39 updated 10/02/18, 12:17

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?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.