feat: Add response caching for safe read operations#636
Merged
Conversation
Implements Redis-based response caching to reduce repeated compute for safe read endpoints. - Backend: 8 cached GET endpoints with configurable TTL (30s-30min) - AI Service: Task status caching with 30s TTL - Cache key normalization using SHA-256 hash - Testnet-safe with automatic TTL adjustments - Graceful degradation if Redis unavailable Closes Pulsefy#619
|
@Joeloo1 is attempting to deploy a commit to the Cedarich's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Joeloo1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
@Joeloo1 fix qorkflow |
- Fix async promise handling in cache interceptor - Remove unused CACHE_RESPONSE_KEY import - Remove async from getCacheStats (no await needed) - Fix Python test mocking to patch main.app instead of services.cache.app
- Add error handler to TypeScript test to prevent timeout - Simplify Python test mocking to avoid import issues - Mock main.app directly instead of patching module imports
Contributor
- Add error handler to prevent test timeout - Mock redisService.set to ensure promise chain completes - Use subscribe object notation for proper error handling
Cedarich
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements Redis-based response caching to reduce repeated compute for safe read operations.
Changes
Backend (NestJS)
AI Service (Python)
Features
Testing
Documentation
Closes #619