Skip to content

Commit 7364c55

Browse files
author
FreedomKnight
committed
修正快取錯誤
1 parent cd2659c commit 7364c55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Setting/Setting.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ private function setByKey($key, $value)
154154
Storage::store($main_key, $value, $this->lang);
155155
}
156156

157-
Cache::forget($main_key);
157+
if (Cache::has($main_key.'@'.$this->lang)) {
158+
Cache::forget($main_key.'@'.$this->lang);
159+
}
158160
}
159161

160162
private function hasByKey($key)

0 commit comments

Comments
 (0)