mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-04 09:50:42 +02:00
Invalidate count cache on entity update
This commit is contained in:
@@ -201,6 +201,10 @@ class Book extends Model {
|
||||
Book.addHook('afterCreate', async (instance) => {
|
||||
libraryItemsBookFilters.clearCountCache('afterCreate')
|
||||
})
|
||||
|
||||
Book.addHook('afterUpdate', async (instance) => {
|
||||
libraryItemsBookFilters.clearCountCache('afterUpdate')
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user