mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-14 07:49:37 +00:00
Invalidate count cache on entity update
This commit is contained in:
parent
0cc2e39367
commit
e8b60defb6
3 changed files with 12 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue