// Set the array back and remove temporary
$GLOBALS['cache_array']['payments'] = $paymentsData;
unset($paymentsData);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
// Create cache file
$GLOBALS['cache_instance']->init();