From e6804d02334e7959d7818b3174a4b2a8a86b1360 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 30 Apr 2022 16:03:37 -0700 Subject: [PATCH] Fix cache warming not firing. Closes #1889 --- core/data/defaults.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/data/defaults.go b/core/data/defaults.go index 7ecf868ad..236c5bdf6 100644 --- a/core/data/defaults.go +++ b/core/data/defaults.go @@ -24,6 +24,8 @@ func hasPopulatedFederationDefaults() bool { // PopulateDefaults will set default values in the database. func PopulateDefaults() { + _datastore.warmCache() + defaults := config.GetDefaults() if HasPopulatedDefaults() { @@ -48,6 +50,5 @@ func PopulateDefaults() { }, }) - _datastore.warmCache() _ = _datastore.SetBool("HAS_POPULATED_DEFAULTS", true) }