1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 08:05:56 +00:00

cache all db prefs on startup

This commit is contained in:
Andrew Dolgov
2013-02-27 15:47:29 +04:00
parent 88918ca637
commit 0a117b86b0
2 changed files with 37 additions and 0 deletions

View File

@@ -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"]);
}
}