Skip to content

Commit

Permalink
hotfix - fix bug at ArticlesController
Browse files Browse the repository at this point in the history
  • Loading branch information
appkr committed Jan 16, 2016
1 parent 29ee6c4 commit 5d7a139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public function __construct()
if (! is_api_request()) {
$this->middleware('auth', ['except' => ['index', 'show']]);

$allTags = taggable()
? Tag::with('articles')->remember(5)->cacheTags('tags')->get()
: Tag::with('articles')->remember(5)->get();
$allTags = \Cache::remember('tags', 30, function() {
return Tag::with('articles')->get();
});

view()->share('allTags', $allTags);
}
Expand Down

0 comments on commit 5d7a139

Please sign in to comment.