lib/generators/alchemy/menus/templates/node.html.erb in alchemy_cms-5.3.8 vs lib/generators/alchemy/menus/templates/node.html.erb in alchemy_cms-6.0.0.b1
- old
+ new
@@ -1,5 +1,5 @@
-<%% cache [node, @page, @preview_mode] do %>
+<%% cache node do %>
<%%= content_tag :li, class: ['nav-item', node.children.any? ? 'dropdown' : nil].compact do %>
<%%= link_to_if node.url,
node.name,
@preview_mode ? 'javascript: void(0)' : node.url,
class: ['nav-link', current_page?(node.url) ? 'active' : nil].compact,