From 5c7983c4deae55ad41b85ca99db54d3fce283fd9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 16 Sep 2004 07:17:56 +0000 Subject: - Patch #8179 by JonBob: reintroduced menu caching. --- modules/archive/archive.module | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'modules/archive') diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 21047dae7..d92e990f0 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -207,12 +207,15 @@ function archive_link($type) { /** * Implementation of hook_menu(). */ -function archive_menu() { +function archive_menu($may_cache) { $items = array(); - $items[] = array('path' => 'archive', 'title' => t('archives'), - 'access' => user_access('access content'), - 'callback' => 'archive_page', - 'type' => MENU_SUGGESTED_ITEM); + + if ($may_cache) { + $items[] = array('path' => 'archive', 'title' => t('archives'), + 'access' => user_access('access content'), + 'callback' => 'archive_page', + 'type' => MENU_SUGGESTED_ITEM); + } return $items; } -- cgit v1.2.3