--- html/includes/xarVar.php ff2400a521003344046bbaf6bdf1c0a4f8b4a826 +++ html/includes/xarVar.php 34fe79bc9b396a0a759c5a19483d706fb00e96cc @@ -628,7 +628,7 @@ if (!$result) return; break; case 'moduservar': - $result =& $dbconn->Execute($query,$bindvars); + $result =& $dbconn->CacheExecute(60*5,$query,$bindvars); if (!$result) return; break; } @@ -641,8 +641,10 @@ // If there is no such thing, return the global setting. if ($result->EOF) { $result->Close(); - // return global setting - return xarModGetVar($modName, $name); + // cache the user setting using the global setting and return it + $value = xarModGetVar($modName, $name); + xarVarSetCached($cacheCollection, $cacheName, $value); + return $value; } }