perf(core): Cache webhooks (#6825)

* refactor: Initial setup

* Refactor for clarity

* Comments to clarify

* More replacements

* Simplify with `fullPath`

* Fix tests

* Implement remaining methods

* chore: Fix misresolved conflicts

* Simplify syntax

* Reduce diff

* Minor cleanup

* Fix lint

* Inject dependency

* Improve typings

* Remove unused method

* Restore method

* Add comment

* Rename in test

* Restore comments

* Clean up dynamic webhook handling

* Clean up tests

* Remove redundant `cache` prefix

* fix: Correct `uniquePath` for dynamic webhooks
This commit is contained in:
Iván Ovejero
2023-08-04 11:52:45 +02:00
committed by GitHub
parent 90e825f743
commit 0511458d41
6 changed files with 394 additions and 77 deletions

View File

@@ -245,9 +245,6 @@ export class CacheService {
return this.cache;
}
/**
* Delete all values from the cache, but leave the cache initialized.
*/
async reset(): Promise<void> {
await this.cache?.store.reset();
}