Skip to content

Commit

Permalink
Fixed issue: Improved performance of survey logic file (#3747)
Browse files Browse the repository at this point in the history
Co-authored-by: Lajos Arpad <arpad@endpoint.com>
  • Loading branch information
lajosarpad and Lajos Arpad committed Feb 21, 2024
1 parent ccf4d07 commit a020168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -3276,7 +3276,7 @@ public function setVariableAndTokenMappingsForExpressionManager($surveyid, $forc
if (isset($_SESSION['LEMforceRefresh'])) {
unset($_SESSION['LEMforceRefresh']);
$forceRefresh = true;
} elseif ($forceRefresh === false && !empty($this->knownVars) && ((!$this->sPreviewMode) || ($this->sPreviewMode === 'database'))) {
} elseif ($forceRefresh === false && !empty($this->knownVars) && ((!$this->sPreviewMode) || ($this->sPreviewMode === 'database') || ($this->sPreviewMode === 'logic'))) {
return false; // means that those variables have been cached and no changes needed
}
$now = microtime(true);
Expand Down

0 comments on commit a020168

Please sign in to comment.