Commit graph

2317 commits

Author SHA1 Message Date
Ajay
c19d6fe97a Only send low voted segments when asked for 2024-03-22 18:37:39 -04:00
Ajay
47c109f012 Fix act as vip unlocking segments 2024-03-21 19:35:13 -04:00
Ajay
a921085da6 Fix vip downvotes unlocking 2024-03-21 19:28:05 -04:00
Ajay
d5ebd8ec1a Improve self downvoting for dearrow 2024-03-20 13:47:23 -04:00
Ajay
a7f10f7727 Attempt to fix docker build error 2024-03-17 13:40:53 -04:00
Ajay
1c234846db Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-03-17 13:20:25 -04:00
Ajay
bc1ca098e7 Fix bug causing people to accidentally super downvote 2024-03-17 13:20:23 -04:00
Ajay Ramachandran
cf21ebc2de
Merge pull request #578 from ajayyy/dependabot/npm_and_yarn/follow-redirects-1.15.6
Bump follow-redirects from 1.15.4 to 1.15.6
2024-03-16 21:07:40 -04:00
dependabot[bot]
2426a6ee03
Bump follow-redirects from 1.15.4 to 1.15.6
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-16 23:28:16 +00:00
SuperStormer
ba65c28459
Update postSkipSegments.ts 2024-03-15 02:20:24 -04:00
Ajay
591b342855 Add default user count, update url 2024-03-06 00:47:51 -05:00
Ajay Ramachandran
8d8388386e
Merge pull request #571 from ajayyy/dependabot/npm_and_yarn/follow-redirects-1.15.4
Bump follow-redirects from 1.15.1 to 1.15.4
2024-02-27 03:49:44 -05:00
Ajay
a54bf556ed Revert "Fix usercounter behind cloudflare"
This reverts commit 9bcceb7e5b.
2024-02-27 03:49:03 -05:00
Ajay
f1c5b8a359 Merge branches 'master' and 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-02-27 03:33:44 -05:00
Ajay
9bcceb7e5b Fix usercounter behind cloudflare 2024-02-27 03:33:38 -05:00
Ajay Ramachandran
da0cf0dedc
Merge pull request #575 from ajayyy/dependabot/npm_and_yarn/axios-1.6.0
Bump axios from 1.1.3 to 1.6.0
2024-02-20 17:16:53 -05:00
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