From db06be5861fb7d780871cd39ef185371bb31e39c Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 11 Jun 2012 12:15:19 +0000 Subject: apache_note() time and cache uses --- lib.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib.php') diff --git a/lib.php b/lib.php index 0cc8db9..f524c45 100644 --- a/lib.php +++ b/lib.php @@ -199,9 +199,12 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. $key = array($wrap, $lang, $inject, $vhost); if (!is_null($cache) && ($h = $cache->get($key))) { + apache_note('navCacheHit', 1); return $h; } + apache_note('navCacheHit', 0); + $lang = _lang_check($lang); l10n::load($lang, $cache); -- cgit v1.2.1