mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Places: Remove unique label index and purge unused location infos #1664
This commit is contained in:
@@ -35,6 +35,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
"github.com/photoprism/photoprism/internal/entity"
|
||||
"github.com/photoprism/photoprism/internal/event"
|
||||
"github.com/photoprism/photoprism/internal/mutex"
|
||||
)
|
||||
@@ -83,7 +84,11 @@ func StartMeta(conf *config.Config) {
|
||||
if !mutex.WorkersBusy() {
|
||||
go func() {
|
||||
worker := NewMeta(conf)
|
||||
if err := worker.Start(time.Minute, false); err != nil {
|
||||
|
||||
delay := time.Minute
|
||||
interval := entity.MetadataUpdateInterval
|
||||
|
||||
if err := worker.Start(delay, interval, false); err != nil {
|
||||
log.Warnf("metadata: %s", err)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user