resolves #1507 introduce an in-memory cache (Node.js)#1523
Open
ggrossetie wants to merge 2 commits intoasciidoctor:mainfrom
Open
resolves #1507 introduce an in-memory cache (Node.js)#1523ggrossetie wants to merge 2 commits intoasciidoctor:mainfrom
ggrossetie wants to merge 2 commits intoasciidoctor:mainfrom
Conversation
ea1863b to
a59b15d
Compare
Member
Author
|
This pull request provides a custom implement of This pull requests also introduces an API to interact with the cache: Asciidoctor.Cache.enable()
Asciidoctor.Cache.disable()
Asciidoctor.Cache.setMax(500)
Asciidoctor.Cache.reset() |
a59b15d to
b7c1940
Compare
ggrossetie
commented
Dec 31, 2021
b7c1940 to
a938a6a
Compare
a938a6a to
aba02c0
Compare
ggrossetie
commented
Apr 24, 2022
Comment on lines
+28
to
+33
| def require_library name, gem_name = true, on_failure = :abort | ||
| if name == 'open-uri/cached' | ||
| `return Opal.Asciidoctor.Cache.enable()` | ||
| end | ||
| original_require_library name, gem_name, on_failure | ||
| end |
Member
Author
There was a problem hiding this comment.
@mojavelinux I'm a bit concerned about this hack, could we find a better "hook" in Asciidoctor core?
Member
Author
|
Waiting for a change in Asciidoctor core to properly hook the in-memory cache. |
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.
resolves #1507