pawamoy / pawamoy/markdown-exec

Cache

Open
#4 17 comments 1 reaction 1 assignee View on GitHub

@pawamoy is already working on this.

Since Jun 13, 2024.

feature insiders
Dominant language
Python
Stars
174
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Generating text/images/svg can slow down rendering a lot.

Describe the solution you'd like
Allow to cache things either during serve (memory), or across multiple builds (filesystem).
A cache option could be added. If boolean value, use hash of the code block's contents as ID.
Otherwise use cache option value as ID. Only useful for cross-builds cache.
Items can then be deleted from the cache by deleting the files in /tmp with the ID as name.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.