mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Menus should be saved for each template separately
Trying to fix some weird bug
This commit is contained in:
@@ -148,7 +148,7 @@ function get_template_menus(): array
|
||||
{
|
||||
global $template_name;
|
||||
|
||||
$result = Cache::remember('template_menus', 10 * 60, function () use ($template_name) {
|
||||
$result = Cache::remember('template_menus_' . $template_name, 10 * 60, function () use ($template_name) {
|
||||
$result = Menu::select(['name', 'link', 'blank', 'color', 'category'])
|
||||
->where('template', $template_name)
|
||||
->orderBy('category')
|
||||
|
Reference in New Issue
Block a user