mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix cache warming not firing. Closes #1889
This commit is contained in:
parent
2a9792f2d6
commit
7ec628f1d2
@ -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