Commit graph

2351 commits

Author SHA1 Message Date
dependabot[bot]
1cefdf4dac
Bump axios from 1.1.3 to 1.6.0
Bumps [axios](https://github.com/axios/axios) from 1.1.3 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.1.3...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-20 21:00:34 +00:00
Ajay
aec2aa4457 Fix keys not properly clearing 2024-02-16 22:14:09 -05:00
Ajay
3f29e11449 Fix submission and vote locks 2024-02-16 14:24:28 -05:00
Ajay
6d11e1c601 Support dragonfly with in memory cache 2024-02-09 18:16:28 -05:00
Ajay
9fa248037a Add to cache when calling set 2024-02-09 17:28:59 -05:00
Ajay
02a640d857 Use broadcast mode for redis 2024-02-09 15:34:36 -05:00
Ajay
17b002649e Add logging when too many active connections 2024-02-09 14:54:14 -05:00
Ajay
a74189b287 Fix cache invalidation with compression enabled 2024-02-09 14:19:56 -05:00
Ajay
09997d82ed Fix chrome extension user fetcher 2024-02-09 13:47:59 -05:00
Ajay
bf644d6899 Don't use broadcast mode for redis 2024-02-09 12:09:03 -05:00
Ajay
5929460239 Remove weighted randomness and change weight calculation 2024-02-09 12:08:52 -05:00
Ajay
09dd10ad6f Fix memory cache invalidation not invalidating every item 2024-02-09 00:34:12 -05:00
Ajay
af5e8cd68d Fix uncached misses tracking 2024-02-08 22:15:28 -05:00
Ajay
bd766ab430 Remove unused import 2024-02-08 22:12:53 -05:00
Ajay
bf1fe1ff61 Allow toggling redis compression and disable by default 2024-02-08 21:58:10 -05:00
Ajay
db225f8a84 Reuse running redis connections and handle redis race condition 2024-02-08 21:30:27 -05:00
Ajay
9364a7e654 Show general last invalidation message 2024-02-08 21:15:28 -05:00
Ajay
f3fffa56c9 Don't allow downvoting locked segments 2024-02-08 15:47:25 -05:00
Ajay
c478546128 Count invalidation only on successful delete 2024-02-08 15:12:48 -05:00
Ajay
e61f964d17 Add ttl to in memory cache cache 2024-02-08 14:37:01 -05:00
Ajay
5f8ef25d88 Use broadcast mode for client tracking and add new memory cache stat 2024-02-08 14:30:32 -05:00
Ajay
b76cfdf798 Allow more things to be cached 2024-02-08 03:40:41 -05:00
Ajay
3c6000f2da Rename config for clientCacheSize 2024-02-08 03:26:06 -05:00
Ajay
9944d70f6b Use size for lru limit instead of length 2024-02-08 03:23:55 -05:00
Ajay
27069cb5c2 Change what gets saved in memory cache 2024-02-08 03:08:02 -05:00
Ajay
8aa03c81a7 Improve cache miss calculation 2024-02-08 03:06:30 -05:00
Ajay
e8879f66b1 Add redis in memory cache stats 2024-02-08 02:58:51 -05:00
Ajay
acdbd3787b More specific on what should be client cached 2024-02-08 01:04:48 -05:00
Ajay
1f7156eb29 Don't crash if redis message invalid 2024-02-08 00:34:37 -05:00
Ajay
7405053b44 Reuse running reputation requests 2024-02-07 23:40:59 -05:00
Ajay
a929f69452 Fix same ip being fetched multiple times from postgres 2024-02-07 23:36:45 -05:00
Ajay
8574ec3a0c Fix is number check 2024-02-07 22:28:28 -05:00
Ajay
1475c91327 Clear cache again after setting up client tracking 2024-02-06 15:32:40 -05:00
Ajay
5b1b362bf0 Handle reconnects with client-side caching
Also upgrades redis to fix a library bug
2024-02-06 00:52:42 -05:00
Ajay
14da10bd8a Add client-side caching 2024-02-05 13:11:44 -05:00
Ajay
547632341a Add back redis compression optionally 2024-02-04 23:17:28 -05:00
Ajay
c54c25c73b Disable query cache for segment groups 2024-02-04 22:53:12 -05:00
Ajay
121cc7f481 Fix duplicate behavior with submitting full video labels 2024-01-31 13:05:47 -05:00
Ajay
e041b9c930 Don't throw 409 if only one segment was successfully submitted 2024-01-31 12:59:01 -05:00
Ajay
59d9ed390f Fix titles and thumbnails being unlocked 2024-01-28 22:05:04 -05:00
Ajay
4477ab7ca6 Remove bad test 2024-01-21 19:55:16 -05:00
Ajay
25ec9b0291 Revert adding redis compression
This reverts commit fce311377f and 2ad51842cc
2024-01-21 19:49:36 -05:00
Ajay
c3e00ac8b1 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-01-21 19:46:18 -05:00
Ajay
2c9079f565 No more verification through sb submissions 2024-01-21 19:46:16 -05:00
Ajay Ramachandran
aee84a4b6e
Merge pull request #572 from SashaXser/master
Promise.resolve and Using "forEach" instead of "map"
2024-01-20 00:08:55 -05:00
SashaXser
a8010b553d
Merge branch 'master' into master 2024-01-20 07:07:03 +04:00
SashaXser
5b95aa8aba
Resolve conflicts 2024-01-20 06:59:12 +04:00
Ajay
fce311377f Switch to lz4 compression 2024-01-19 15:16:50 -05:00
Ajay
dcb479f3d2 Fallback to allowing taking a lock if redis fails 2024-01-19 14:35:32 -05:00
Ajay
2ad51842cc Compress redis values 2024-01-19 14:34:18 -05:00