if ($GLOBALS['cache_instance']->loadCacheFile('revision')) {
// Load revision from cache
$GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((isHtmlOutputMode())) {
+} elseif (((isHtmlOutputMode())) || (isAjaxOutputMode()) || (isRawOutputMode())) {
// Create cache file here
$GLOBALS['cache_instance']->init();
$GLOBALS['cache_instance']->finalize();
// Generate FQFN for old revision file
- $FQFN = sprintf("%s/.revision", getCachePath());
+ $FQFN = sprintf('%s/.revision', getCachePath());
// Is it there?
if (isFileReadable($FQFN)) {