aboutsummaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-06-11 12:15:19 +0000
committerRomain d'Alverny <rda@mageia.org>2012-06-11 12:15:19 +0000
commitdb06be5861fb7d780871cd39ef185371bb31e39c (patch)
treeddef45762c563dcb69b4c698cd70483dd8e897d7 /lib.php
parent12e18091b138db4e565f9344f0d45152ca4d8a49 (diff)
downloadnav-db06be5861fb7d780871cd39ef185371bb31e39c.tar
nav-db06be5861fb7d780871cd39ef185371bb31e39c.tar.gz
nav-db06be5861fb7d780871cd39ef185371bb31e39c.tar.bz2
nav-db06be5861fb7d780871cd39ef185371bb31e39c.tar.xz
nav-db06be5861fb7d780871cd39ef185371bb31e39c.zip
apache_note() time and cache uses
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php3
1 files changed, 3 insertions, 0 deletions
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);