Skip to content

Sync AOT caching preview with updated detail page flags#10

Merged
brunoborges merged 2 commits intomainfrom
copilot/fix-aot-caching-preview
Feb 17, 2026
Merged

Sync AOT caching preview with updated detail page flags#10
brunoborges merged 2 commits intomainfrom
copilot/fix-aot-caching-preview

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

The AOT class preloading detail page was updated with new JVM flags (-XX:AOTCacheOutput, -XX:AOTCache), but the preview card and search data still referenced deprecated flags, causing preview/detail mismatch.

Changes

Updated two data sources to match the detail page:

  • data/snippets.json - Updated modernCode field with correct flags
  • index.html - Updated hardcoded preview card HTML

Flag Changes

# Training run
- $ java -XX:AOTMode=record \
-     -XX:AOTConfiguration=app.aotconf \
+ $ java -XX:AOTCacheOutput=app.aot \
      -cp app.jar com.App

# Production
- $ java -XX:AOTMode=on \
-     -XX:AOTCache=app.aot \
+ $ java -XX:AOTCache=app.aot \
      -cp app.jar com.App

Verification

Detail page:
Detail page

Preview card:
Preview card

Architecture Note

Site uses three independent data sources that must be kept in sync:

  1. Detail page HTML files (standalone)
  2. Preview cards in index.html (hardcoded)
  3. data/snippets.json (search index)
Original prompt

This section details on the original issue you should resolve

<issue_title>Fixing AOT Caching preview</issue_title>
<issue_description>After updating the AOT Caching site, the main preview page was not refreshed and now shows outdated content.

Investigate and fix the issue so that preview pages always stay consistent with their corresponding detail pages.

Requirements:

  • Ensure previews automatically update whenever a detail page is updated.
  • Identify where preview data is generated or cached and correct any invalidation or refresh logic.
  • Verify that AOT caching does not serve stale preview content.
  • Add safeguards or tests to prevent preview/detail mismatches in the future.
  • Keep performance impact minimal and preserve existing caching benefits.

Expected outcome:

  • The main preview page and all preview components display the same updated data as the detail pages immediately after updates.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix AOT caching to ensure updated previews Sync AOT caching preview with updated detail page flags Feb 16, 2026
Copilot AI requested a review from brunoborges February 16, 2026 23:52
@brunoborges brunoborges marked this pull request as ready for review February 17, 2026 00:08
@brunoborges brunoborges merged commit 893f300 into main Feb 17, 2026
@brunoborges brunoborges deleted the copilot/fix-aot-caching-preview branch February 26, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixing AOT Caching preview

2 participants