Fix profiler initialization bug and implement Redis persistence for minified content#14
Draft
Fix profiler initialization bug and implement Redis persistence for minified content#14
Conversation
- Remove unused commented import in FPC.js (gunzipSync) - Remove duplicate blank import in FPC.go (encoding/json) - Fix inverted profiler initialization logic in FPC.go - Implement TODO: Save minified HTML content back to Redis - Add compressToGzippedBase64 and setRedisValue functions Co-authored-by: Genaker <9213670+Genaker@users.noreply.github.com>
- Improve logging in setRedisValue to include key for better debugging - Remove redundant comment in FPC.go profiler initialization Co-authored-by: Genaker <9213670+Genaker@users.noreply.github.com>
Co-authored-by: Genaker <9213670+Genaker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Check for improvements in the codebase
Fix profiler initialization bug and implement Redis persistence for minified content
Feb 6, 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.
Addresses code quality issues and completes missing functionality in FPC cache implementations.
Critical Fixes
FPC.go profiler logic: Inverted condition prevented profiler from ever starting
FPC.js minified content persistence: Implemented TODO to save minified HTML back to Redis, preventing redundant minification on subsequent cache hits
compressToGzippedBase64()to match Redis storage formatsetRedisValue()with error handlingCode Cleanup
_ "encoding/json"in FPC.gogunzipSyncimport in FPC.jsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.