Commit graph

54 commits

Author SHA1 Message Date
Hazelnoot
4d98a8fddc fix broken fetchers in userListMembershipsCache/listUserMembershipsCache 2025-11-05 19:42:31 -05:00
Hazelnoot
a55649e89a move global services to "global" directory 2025-11-05 19:42:28 -05:00
Hazelnoot
36205cc496 fix merge errors 2025-11-05 19:20:25 -05:00
Hazelnoot
2daf5c16ec fix list and instance caching, manage all CacheService caches, and fix list "with replies" setting 2025-11-05 19:20:05 -05:00
Hazelnoot
b5f2c743b2 remove dependency on UserEntityService from CacheService 2025-11-05 19:20:05 -05:00
Hazelnoot
ac9b787796 move userFollowingChannelsCache and federatedInstanceCache to CacheService for more reliable disposal 2025-11-05 19:20:04 -05:00
Hazelnoot
4b4efef5f9 add missing cache dispose/clear to CacheService 2025-11-05 19:20:04 -05:00
Hazelnoot
3c3253f84a remove duplicate event from CacheService 2025-11-05 19:20:04 -05:00
Lhc_fl
e6fd69f634
🐛 fix: userBlockedCache is invalid 2025-09-29 17:14:23 +08:00
Hazelnoot
924528749b fix cherry-pick error: restore CacheService.findOptionalUserById 2025-07-27 12:04:59 -04:00
Hazelnoot
34dcb1c51c optimize i/update-remote-user endpoint by fetching from cache 2025-07-21 16:12:32 -04:00
Hazelnoot
d2b4035f7a add missing GROUP BY to threadMutingsCache / noteMutingsCache 2025-06-23 13:47:04 -04:00
Hazelnoot
7200c3d6c8 implement note mutings and move favorited/renoted status into note entity directly 2025-06-23 13:47:04 -04:00
Hazelnoot
7d0f995c9b hide muted threads from timelines 2025-06-23 13:47:04 -04:00
Hazelnoot
646ffa7b62 fix missing @bindThis in CacheService 2025-06-09 11:45:20 -04:00
Hazelnoot
51572b7314 fix refactoring mistake in CacheService.ts 2025-06-09 11:26:21 -04:00
Hazelnoot
fa68751a19 normalize userFollowingsCache / userFollowersCache and add hibernatedUserCache to reduce the number of cache-clears and allow use of caching in many more places 2025-06-09 11:02:51 -04:00
Hazelnoot
372714c9b6 implement userFollowersCache 2025-06-09 11:02:36 -04:00
Hazelnoot
853b548a43 re-type userFollowingsCache to match the others 2025-06-09 11:02:36 -04:00
Hazelnoot
0c84d73294 move QuantumKVCache to a separate file 2025-06-09 11:02:36 -04:00
Hazelnoot
2e486f02ff implement no-op caches for testing 2025-06-09 11:02:36 -04:00
Hazelnoot
68b84b28dd implement CacheService.getUsers and CacheService.getUserProfiles 2025-06-09 11:02:36 -04:00
Hazelnoot
3d13860ec8 update quantum caches when a user is deleted 2025-06-09 11:02:36 -04:00
Hazelnoot
9853a4f3bd use addMany instead of setMany when populating quantum caches from DB 2025-06-09 11:02:36 -04:00
Hazelnoot
bf1156426e add CacheService.getUserFollowings and CacheService.getUserBlockers 2025-06-09 11:02:36 -04:00
Hazelnoot
46a6612dc0 convert many RedisKVCaches to QuantumKVCache or MemoryKVCache 2025-06-09 11:02:36 -04:00
Hazelnoot
7db48ffa8d add redis cache for note translations
* Partitioned by target language
* Invalidated if the note is edited
2025-05-12 21:35:06 -04:00
Hazelnoot
40a73bfcbe add new role conditions for local/remote followers/followees 2025-05-10 14:44:17 -04:00
Hazelnoot
a35c2f214b convert Authorized Fetch to a setting and add support for hybrid mode (essential metadata only) 2025-03-16 10:07:57 -04:00
Hazel K
bc236a4bd2 remove infinity caches 2024-08-03 13:42:23 -04:00
Hazel K
114b698034 encapsulate MemoryKVCache<T> 2024-08-03 09:18:44 -04:00
dakkar
af548d05ca merge upstream for 2024.2.1 2024-03-02 16:36:49 +00:00
tamaina
c0156b740b
enhance?: DeleteAccountServiceでユーザーを削除する際にuserChangeDeletedStateを発行する (#13382) 2024-02-23 18:15:39 +09:00
syuilo
7cfe7da73d fix 2024-02-16 15:09:05 +09:00
syuilo
f55e1ee138 refactor(backend): misc/cacheをシンプルな実装に戻した 2024-02-16 15:07:12 +09:00
MeiMei
cfa573a3a1
リモートユーザーが復活してもキャッシュにより該当ユーザーのActivityが受け入れられないのを修正 Fix #13273 (#13275)
* リモートユーザーが復活してもキャッシュにより該当ユーザーのActivityが受け入れられないのを修正 Fix #13273

* CHAGELOG

* Use Redis event

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2024-02-16 14:30:53 +09:00
tamaina
c1514ce91d (re) update SPDX-FileCopyrightText
Fix  #13290
2024-02-13 15:59:27 +00:00
tamaina
311c2172d7 Revert "update SPDX-FileCopyrightText"
This reverts commit 9b5aeb76d8.
2024-02-13 15:50:11 +00:00
syuilo
9b5aeb76d8 update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
おさむのひと
a8ee67cace
Fix: チャンネルのフォロー・アンフォローの反映速度を改善 (#12149)
* チャンネルのフォロー・アンフォローの反映速度を改善

* fix lint

* userFollowingChannelsCacheの場所をCacheServiceからChannelFollowingServiceに移動

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-10-27 18:34:02 +09:00
syuilo
6277a5545c
feat: improve tl performance (#11946)
* wip

* wip

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update NoteCreateService.ts

* wip

* Update user-notes.ts

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* wip

* Update timelines.ts

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* Update misskey-js.api.md

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* wip

* Update timelines.ts

* wip

* test

* Update activitypub.ts

* refactor: UserListJoining -> UserListMembership

* Update NoteCreateService.ts

* wip
2023-10-03 20:26:11 +09:00
syuilo
b9da1415a5 feat: 通知の受信設定を強化 2023-09-29 11:29:54 +09:00
syuilo
053da10e94 refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
syuilo
6cf466e5d1
update deps (#11820)
* update deps

* fix

* wip

* wip

* wip

* Update docker-compose.yml.example

* Delete reviewer-lottery.yml

* Update RepositoryModule.ts

* wip

* wip

* clean up

* update deps

* wip

* wip
2023-09-15 14:28:29 +09:00
syuilo
792622aead
refactor: prefix Mi for all entities (#11719)
* wip

* wip

* wip

* wip

* Update RepositoryModule.ts

* wip

* wip

* wip

* Revert "wip"

This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
2023-08-16 17:51:28 +09:00
Shun Sakai
c2370a1be6
chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348)
* chore: Add the SPDX information to each file

Add copyright and licensing information as defined in version 3.0 of
the REUSE Specification.

* tweak format

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-27 14:31:52 +09:00
tamaina
7ec07d5fd2
perf(backend): Reduce memory usage of MemoryKVCache (#11076)
* perf(backend): Reduce memory usage of MemoryKVCache

* fix
2023-07-08 21:18:16 +09:00
syuilo
e8420ad90b fix(backend): キャッシュが溜まり続けないように
Related #10984
2023-06-10 13:45:11 +09:00
syuilo
b6f21b6edb refactor 2023-05-29 13:21:26 +09:00
syuilo
a67439981b fix types 2023-04-14 13:50:05 +09:00