contao/core — pull request #5359 by fbender (2013-02-12 22:56:40+00:00)
Title: Fix: cacheMode == browser always prohibits caching ($intCache is always null)

In Contao 3.x, [FrontendTemplate.php, Ll. 127](https://github.com/contao/core/blob/850b2ed9d0d78a7f515fc02ee201dae76d5c206b/system/modules/core/classes/FrontendTemplate.php#L127), `$intCache` is initialized to `null`. The `if` block starting in line 130 fails with `$GLOBALS['TL_CONFIG']['cacheMode'] = 'browser'`.

The check in [FrontendTemplate.php, Ll. 175](https://github.com/contao/core/blob/850b2ed9d0d78a7f515fc02ee201dae76d5c206b/system/modules/core/classes/FrontendTemplate.php#L175) then always fails because `$intCache == null;`. Thus, Contao always prohibits client side caching in said conditions.

This commit fixes the bug by replacing the checked for variable and also where this variable was used for setting the cache time. The fix is the same as in #5358 (the FrontendTemplate.php in Contao 3.x is essentially equal to the one in Contao 2.11.10). However, I did not test this fix.