Skip to content

Commit

Permalink
Change cache key for nav tree (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 7, 2025
1 parent e15d551 commit 415a163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RapidezStatamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function nav(string $tag): array
'You can only use a nav tag to get a navigation tree.'
);

return Cache::rememberForever($tag . '-' . config('rapidez.store'), fn() => $this->buildMenu($tag));
return Cache::rememberForever($tag . '-tree-' . config('rapidez.store'), fn() => $this->buildMenu($tag));
}

protected function buildMenu(string $key): array
Expand Down

0 comments on commit 415a163

Please sign in to comment.