From a62b9742ee5e28bcec6872d88f50f25b820914f6 Mon Sep 17 00:00:00 2001 From: mensonge Date: Wed, 22 Oct 2008 14:05:59 +0000 Subject: git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@150 b3834d28-1941-0410-a4f8-b48e95affb8f --- users.php | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'users.php') diff --git a/users.php b/users.php index 1275157..f79cbfb 100644 --- a/users.php +++ b/users.php @@ -1,23 +1,23 @@ isLoggedOn()) { - $hash = md5($_SERVER['REQUEST_URI'] . $userservice->getCurrentUserID()); - } else { - $hash = md5($_SERVER['REQUEST_URI']); - } + // Generate hash for caching on + if ($userservice->isLoggedOn()) { + $hash = md5($_SERVER['REQUEST_URI'] . $userservice->getCurrentUserID()); + } else { + $hash = md5($_SERVER['REQUEST_URI']); + } - // Cache for 30 minutes - $cacheservice->Start($hash, 1800); + // Cache for 30 minutes + $cacheservice->Start($hash, 1800); } // Header variables @@ -58,7 +58,7 @@ $tplVars['users'] =& $userservice->getUsers(); $templateservice->loadTemplate('users.tpl', $tplVars); if ($usecache) { - // Cache output if existing copy has expired - $cacheservice->End($hash); + // Cache output if existing copy has expired + $cacheservice->End($hash); } ?> -- cgit v1.2.3-54-g00ecf