Skip to content

Commit

Permalink
Dev Speed up SPSS syntax file export by 20%
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 20, 2018
1 parent befbee3 commit 6eef5f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion application/models/QuestionAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ public function getQuestionAttributes($iQuestionID, $sLanguage = null)
$iQuestionID = (int) $iQuestionID;
static $aQuestionAttributesStatic = array(); // TODO : replace by Yii::app()->cache
// Limit the size of the attribute cache due to memory usage
$aQuestionAttributesStatic = array_splice($aQuestionAttributesStatic, -1000, null, true);
if (isset($aQuestionAttributesStatic[$iQuestionID])) {
return $aQuestionAttributesStatic[$iQuestionID];
}
Expand Down

0 comments on commit 6eef5f9

Please sign in to comment.