Skip to content

Commit 54c24bf

Browse files
committed
more unique cacheKey (respect query_sort_order)
1 parent 62667a6 commit 54c24bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AdjacencyFullTreeDataAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function run()
9494
$current_selected_id = Yii::$app->request->get($this->query_parent_attribute);
9595
}
9696

97-
$cacheKey = "AdjacencyFullTreeData:".$this->cacheKey.":$class";
97+
$cacheKey = "AdjacencyFullTreeData:{$this->cacheKey}:{$class}:{$this->query_sort_order}";
9898

9999
if (false === $result = Yii::$app->cache->get($cacheKey)) {
100100
$query = $class::find()

0 commit comments

Comments
 (0)