Fix cache warming not firing. Closes #1889
This commit is contained in:
parent
339d596fd3
commit
e6804d0233
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user