Commit Graph

9 Commits

Author SHA1 Message Date
Roardom
42488abe6c update: only delete upsert data after successful upsertion 2025-02-13 09:53:04 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
99f5f33283 update: commands 2024-05-06 15:54:19 -04:00
HDVinnie
05222a1172 update: doc blocks 2024-04-29 11:26:46 -04:00
HDVinnie
97f4f14f74 update: AutoUpdateUserLastActions.php 2024-04-29 11:00:07 -04:00
HDVinnie
809e6f8c1e update: AutoUpdateUserLastActions.php
- Use DB facade instead of model fr performance.
- Wrap update query in a database transaction to help against deadlocks with external tracker.
- Better documentation.
- $userIds = Redis::command('LPOP', [$key, $userIdCount]); returned an array of strings so not sure how this worked. Wrapped in an array_map('intval', ).
2024-04-28 19:43:06 -04:00
HDVinnie
77bec4c06c update: phpredis support 2023-10-05 22:46:12 -04:00
Roardom
8e1b51a263 fix: batch user last action updates with redis
If there are no users in the list, null is returned, so we have to check against null.

Since we cache users for 30 seconds, checking their last action time is pointless.
2023-07-20 05:02:46 +00:00
Roardom
01ef9e29ff update: batch user last action updates with redis 2023-07-20 01:17:00 +00:00