X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodule-functions.php;h=1c8e80957f7742cb7ee2ff272f6875700f69b6af;hb=84e09efe24aa3fb5622c2d19b75df8fd52ac7bed;hp=e58662787d943650787b5f2311512454002cdf6f;hpb=b353f8583ae3c0a9224d97a2ed01fd8cd7965081;p=mailer.git diff --git a/inc/module-functions.php b/inc/module-functions.php index e58662787d..1c8e80957f 100644 --- a/inc/module-functions.php +++ b/inc/module-functions.php @@ -236,7 +236,7 @@ function checkModulePermissions ($module = '') { // Destroy cache here // @TODO Rewrite this to a filter - if ((getScriptOutputMode() == '0') || (getScriptOutputMode() == -1)) rebuildCache('modules', 'modules'); + if ((isHtmlOutputMode()) || (isRawOutputMode())) rebuildCache('modules', 'modules'); // And reload data unset($GLOBALS['module_status'][$module]); @@ -245,7 +245,7 @@ function checkModulePermissions ($module = '') { // Module not found we don't add it to the database $ret = '404'; } - } elseif (($ret == 'cache_miss') && (getScriptOutputMode() == '0')) { + } elseif (($ret == 'cache_miss') && (isHtmlOutputMode())) { // Rebuild the cache files rebuildCache('modules', 'modules'); } elseif ($found === false) {