Project

General

Profile

Actions

Feature #17258

closed

A better $TSFE->set_no_cache()

Added by Popy no-lastname-given about 17 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-04-27
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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)

Actions

Also available in: Atom PDF