mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-02 08:07:10 +00:00
implement preferred time for sending out digests
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user