summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 21:45:16 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 21:45:16 +0300
commitfd9cd5292979045581630d36b1f35333c60f420e (patch)
treeb5f31938aa83ae0d6f0d095f07a1e54ef3ec226c
parenta1ca62af50047a92692c009b97bebb73f94db7ea (diff)
prefs: migrate after cache has been filled to skip 1 pref requestwip-new-prefs
-rw-r--r--classes/prefs.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/classes/prefs.php b/classes/prefs.php
index dabe5eac6..e6d8a84f1 100644
--- a/classes/prefs.php
+++ b/classes/prefs.php
@@ -162,11 +162,8 @@ class Prefs {
$owner_uid = (int) $_SESSION["uid"];
$profile_id = $_SESSION["profile"] ?? null;
-
- $in_nested_tr = false;
-
- $this->migrate($owner_uid, $profile_id);
$this->cache_all($owner_uid, $profile_id);
+ $this->migrate($owner_uid, $profile_id);
};
}