From 61c1812f29dc76e93107b65dea80fde260269e8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 30 Jan 2012 16:34:45 +0400 Subject: implement preferred time for sending out digests --- include/db-prefs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/db-prefs.php') diff --git a/include/db-prefs.php b/include/db-prefs.php index 7ee492009..b62e01a7b 100644 --- a/include/db-prefs.php +++ b/include/db-prefs.php @@ -2,7 +2,7 @@ require_once "config.php"; require_once "db.php"; - if (!defined('DISABLE_SESSIONS')) { + if (!defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) { if (!$_SESSION["prefs_cache"]) $_SESSION["prefs_cache"] = array(); } @@ -21,7 +21,7 @@ //$prefs_cache = false; } - if ($prefs_cache && !defined('DISABLE_SESSIONS')) { + if ($prefs_cache && !defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) { if ($_SESSION["prefs_cache"] && @$_SESSION["prefs_cache"][$pref_name]) { $tuple = $_SESSION["prefs_cache"][$pref_name]; return convert_pref_type($tuple["value"], $tuple["type"]); @@ -102,7 +102,7 @@ $type_name = ""; $current_value = ""; - if (!defined('DISABLE_SESSIONS')) { + if (!defined('DISABLE_SESSIONS') && !defined('PREFS_NO_CACHE')) { if ($_SESSION["prefs_cache"] && @$_SESSION["prefs_cache"][$pref_name]) { $type_name = $_SESSION["prefs_cache"][$pref_name]["type"]; $current_value = $_SESSION["prefs_cache"][$pref_name]["value"]; -- cgit v1.2.3