Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit 507c9ce

Browse files
committed
update CACHE_TAG
1 parent f3dcddf commit 507c9ce

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/AppAsset.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
use yii\web\AssetBundle;
66

77
/**
8-
* Main asset bundle.
8+
* @inheritDoc
9+
*
10+
* @author Die Coding (Sugeng Sulistiyawan) <[email protected]>
11+
* @copyright 2019 Die Coding
12+
* @license MIT
13+
* @link https://www.diecoding.com
14+
* @version 0.1.0
915
*/
1016
class AppAsset extends AssetBundle
1117
{

src/Module.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ class Module extends \mdm\admin\Module
3737
*/
3838
public $layout = 'left-menu';
3939

40+
/**
41+
*
42+
*/
43+
private $_config;
44+
4045
/**
4146
* @inheritDoc
4247
*/

src/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @copyright 2019 Die Coding
44
* @license MIT
55
* @link https://www.diecoding.com
6-
* @version 0.0.1
6+
* @version 0.1.0
77
*/
88

99
pre {

src/helpers/MenuHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static function getList($userId, $root = null, $callback = null, $refresh
129129
$assigned = static::requiredParent($assigned, $menus);
130130
if ($cache !== null) {
131131
$cache->set($key, $assigned, $module->cacheDuration, new TagDependency([
132-
'tags' => Configs::CACHE_TAG
132+
'tags' => $module::CACHE_TAG
133133
]));
134134
}
135135
}
@@ -139,7 +139,7 @@ public static function getList($userId, $root = null, $callback = null, $refresh
139139
$result = static::normalizeMenu($assigned, $menus, $callback, $root);
140140
if ($cache !== null && $callback === null) {
141141
$cache->set($key, $result, $module->cacheDuration, new TagDependency([
142-
'tags' => Configs::CACHE_TAG
142+
'tags' => $module::CACHE_TAG
143143
]));
144144
}
145145
}

0 commit comments

Comments
 (0)