feat(19.3-04): purge the host site's page cache after menu and menu-entry saves, deletes and reorders
- menus controller gains the app accessor and FormAfterCreate/Update/Delete purging kind menu with the menu code - menu entries purge kind menu_entry with the entry id after the placement checks pass, on delete, and through pact.ReorderAfterSave with partition:<menu id> - purgeSiteCache helper on cabana.TxFromContext and cooler.SiteCacheFromApp - TestMenuAdminPurgesSiteCache on Postgres
This commit is contained in:
@@ -15,7 +15,7 @@ const PermissionManageMenu = "golem15.menu.manage_menu"
|
||||
// a database handle or registry of its own.
|
||||
func AdminControllers(app func() *backpack.App) []pact.AdminController {
|
||||
return []pact.AdminController{
|
||||
menusAdminController{},
|
||||
menusAdminController{app: app},
|
||||
menuEntriesAdminController{app: app},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user