From 0a117b86b0d5dc4b77d0f13f0fd865fe97693d59 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Feb 2013 15:47:29 +0400 Subject: cache all db prefs on startup --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index d153f9c11..d6c73343e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -740,6 +740,7 @@ if (SINGLE_USER_MODE) { authenticate_user($link, "admin", null); + cache_prefs($link); load_user_plugins($link, $_SESSION["uid"]); } else { if (!$_SESSION["uid"] || !validate_session($link)) { @@ -764,6 +765,7 @@ } if ($_SESSION["uid"]) { + cache_prefs($link); load_user_plugins($link, $_SESSION["uid"]); } } -- cgit v1.2.3