Skip to content

Commit

Permalink
다국어 캐시 배열 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyeon1010 committed Dec 6, 2018
1 parent e2c7549 commit 676224d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/Xpressengine/Translation/TransCache.php
Expand Up @@ -136,8 +136,7 @@ private function load()
$this->cachedLines = [];
$this->repo->chunk(function ($lines) {
foreach ($lines as $line) {
$keys = [$line->namespace, $line->item, $line->locale];
Arr::set($this->cachedLines, implode('.', $keys), $line->value);
$this->cachedLines[$line->namespace][$line->item][$line->locale] = $line->value;
}
});
$this->cache->forever($this->transCacheKey, json_enc($this->cachedLines));
Expand Down

0 comments on commit 676224d

Please sign in to comment.