0

Fix cache warming not firing. Closes #1889

This commit is contained in:
Gabe Kangas 2022-04-30 16:03:37 -07:00
parent 339d596fd3
commit e6804d0233
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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)
}