Skip to content

Commit

Permalink
修正快取錯誤
Browse files Browse the repository at this point in the history
  • Loading branch information
FreedomKnight committed Sep 18, 2015
1 parent cd2659c commit 7364c55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Setting/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ private function setByKey($key, $value)
Storage::store($main_key, $value, $this->lang);
}

Cache::forget($main_key);
if (Cache::has($main_key.'@'.$this->lang)) {
Cache::forget($main_key.'@'.$this->lang);
}
}

private function hasByKey($key)
Expand Down

0 comments on commit 7364c55

Please sign in to comment.