Menus should be saved for each template separately

Trying to fix some weird bug
This commit is contained in:
slawkens
2025-08-17 18:45:49 +02:00
parent 2f26748112
commit 482f4067b2

View File

@@ -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')