Response Header: Cache

Behavior of the cache settings in to the response header.

File: config/phpwcms/

Site wide:

$phpwcms['cache_enabled'] = 0;    // Cache off
$phpwcms['cache_timeout'] = 0;     // Response-Header: -> "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0" und "Pragma = no-cache"
$phpwcms['cache_timeout'] = 14400; // Response-Header: -> "Cache-Control: public, max-age=14400" und "Pragma = public"

The blind switch cache: [x] in the article header has no effect.

Article related:

$phpwcms['cache_enabled'] = 1;           // Cache on
$phpwcms['cache_timeout'] = 14400;       // Any value > 0

Enables blind switch cache:[x] in the article head only if the value in $phpwcms['cache_timeout'], is > 0.
Thus, the response headers can be controlled for each article/category.

english/technics/tips/cache-response-header.txt · Last modified: 2018/06/03 18:09 (external edit) Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0