caching PDF #14

Closed
opened 2026-02-07 15:06:38 +00:00 by despiegk · 3 comments
Owner

how do we know when to generate PDF again,
should be some hashing trick

how do we know when to generate PDF again, should be some hashing trick
despiegk added this to the now milestone 2026-02-07 15:06:44 +00:00
despiegk added this to the ACTIVE project 2026-02-07 15:06:47 +00:00
Owner

if content changes it needs to be regenerated

if content changes it needs to be regenerated
Author
Owner

use

there is a new RPC endpoint for hero_embedder its a key/value store per namespace, we can use this to remember info we don't want to forget (in stead of a default redis), and this is per namespace, use this for checking if we need to process a page again or for other config

use > there is a new RPC endpoint for hero_embedder its a key/value store per namespace, we can use this to remember info we don't want to forget (in stead of a default redis), and this is per namespace, use this for checking if we need to process a page again or for other config
Owner

Addressed in PR #24 (branch development-fixes-feb).

Commit: 06a8d1a Phase 7: Polish

  • Before generating PDF, compute hash of all input content (markdown + config)
  • Check KVS for existing hash — if match, return cached PDF path
  • After generation, store hash → PDF path in KVS
  • Generated PDFs stored in persistent cache directory (~/hero/var/herobooks/pdf_cache/)
Addressed in PR #24 (branch `development-fixes-feb`). **Commit:** `06a8d1a` Phase 7: Polish - Before generating PDF, compute hash of all input content (markdown + config) - Check KVS for existing hash — if match, return cached PDF path - After generation, store hash → PDF path in KVS - Generated PDFs stored in persistent cache directory (`~/hero/var/herobooks/pdf_cache/`)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#14
No description provided.