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