mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-24 00:21:12 +01:00
Revert "Invalidate count cache on entity update"
This reverts commit e8b60defb6
.
This commit is contained in:
parent
9d7f44f73a
commit
d6b58c2f10
@ -201,10 +201,6 @@ class Book extends Model {
|
|||||||
Book.addHook('afterCreate', async (instance) => {
|
Book.addHook('afterCreate', async (instance) => {
|
||||||
libraryItemsBookFilters.clearCountCache('afterCreate')
|
libraryItemsBookFilters.clearCountCache('afterCreate')
|
||||||
})
|
})
|
||||||
|
|
||||||
Book.addHook('afterUpdate', async (instance) => {
|
|
||||||
libraryItemsBookFilters.clearCountCache('afterUpdate')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -157,10 +157,6 @@ class Podcast extends Model {
|
|||||||
Podcast.addHook('afterCreate', async (instance) => {
|
Podcast.addHook('afterCreate', async (instance) => {
|
||||||
libraryItemsPodcastFilters.clearCountCache('podcast', 'afterCreate')
|
libraryItemsPodcastFilters.clearCountCache('podcast', 'afterCreate')
|
||||||
})
|
})
|
||||||
|
|
||||||
Podcast.addHook('afterUpdate', async (instance) => {
|
|
||||||
libraryItemsPodcastFilters.clearCountCache('podcast', 'afterUpdate')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasMediaFiles() {
|
get hasMediaFiles() {
|
||||||
|
@ -140,10 +140,6 @@ class PodcastEpisode extends Model {
|
|||||||
PodcastEpisode.addHook('afterCreate', async (instance) => {
|
PodcastEpisode.addHook('afterCreate', async (instance) => {
|
||||||
libraryItemsPodcastFilters.clearCountCache('podcastEpisode', 'afterCreate')
|
libraryItemsPodcastFilters.clearCountCache('podcastEpisode', 'afterCreate')
|
||||||
})
|
})
|
||||||
|
|
||||||
PodcastEpisode.addHook('afterUpdate', async (instance) => {
|
|
||||||
libraryItemsPodcastFilters.clearCountCache('podcastEpisode', 'afterUpdate')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get size() {
|
get size() {
|
||||||
|
Loading…
Reference in New Issue
Block a user