+caching layer for sorted alms

This commit is contained in:
Simon Martens
2026-01-12 20:22:00 +01:00
parent bcf7d1847d
commit 9dd1fcd8ce
3 changed files with 59 additions and 3 deletions

View File

@@ -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)