Issue Feature Closed

#17258A better $TSFE->set_no_cache()

Popy no-lastname-given 04/27/07, 17:41 updated 07/18/11, 23:32

Description

Some plugins use the set_no_cache function, wich prevents caching, but, before this function is called, the tempCacheContent has been stored to cache table.

It should be better if the set_no_cache function call the clearPageCacheContent function

/** * Sets the cache-flag to 1. Could be called from user-included php-files in order to ensure that a page is not cached. * * param bool $clean = should clean tempPageContent ? * return void
*/
function set_no_cache($clean = true) {
if (!$this->no_cache && $clean) {
$this->clearPageCacheContent();
}
$this->no_cache = 1;
}

(issue imported from #M5517)

Reviews 0

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