mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-05 02:02:44 +02:00
Invalidate count cache on entity update
This commit is contained in:
@@ -157,6 +157,10 @@ class Podcast extends Model {
|
||||
Podcast.addHook('afterCreate', async (instance) => {
|
||||
libraryItemsPodcastFilters.clearCountCache('podcast', 'afterCreate')
|
||||
})
|
||||
|
||||
Podcast.addHook('afterUpdate', async (instance) => {
|
||||
libraryItemsPodcastFilters.clearCountCache('podcast', 'afterUpdate')
|
||||
})
|
||||
}
|
||||
|
||||
get hasMediaFiles() {
|
||||
|
||||
Reference in New Issue
Block a user