mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+caching layer for sorted alms
This commit is contained in:
@@ -146,6 +146,9 @@ func (p *AlmanachNewPage) POSTSave(engine *templating.Engine, app core.App) Hand
|
||||
})
|
||||
}
|
||||
|
||||
// Invalidate sorted entries cache since new entry was created
|
||||
InvalidateSortedEntriesCache()
|
||||
|
||||
// Update FTS5 index asynchronously
|
||||
go func(appInstance core.App, entryID string) {
|
||||
freshEntry, err := dbmodels.Entries_ID(appInstance, entryID)
|
||||
|
||||
Reference in New Issue
Block a user