mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backend: Clear folder cache after indexing #623
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/photoprism/photoprism/internal/acl"
|
||||
"github.com/photoprism/photoprism/internal/entity"
|
||||
"github.com/photoprism/photoprism/internal/event"
|
||||
"github.com/photoprism/photoprism/internal/form"
|
||||
"github.com/photoprism/photoprism/internal/i18n"
|
||||
@@ -59,6 +60,8 @@ func StartImport(router *gin.RouterGroup) {
|
||||
|
||||
imp := service.Import()
|
||||
|
||||
ClearFoldersCache(entity.RootImport)
|
||||
|
||||
var opt photoprism.ImportOptions
|
||||
|
||||
if f.Move {
|
||||
|
||||
Reference in New Issue
Block a user