Cache pages with Querystrings Refactor Config for V2#1
Open
marcus-at-localhost wants to merge 4 commits intoNepose:masterfrom
Open
Cache pages with Querystrings Refactor Config for V2#1marcus-at-localhost wants to merge 4 commits intoNepose:masterfrom
marcus-at-localhost wants to merge 4 commits intoNepose:masterfrom
Conversation
Add a hash of the query string to the filename call eg: /page?id=xyz => page__3c1e9d261634be3a29e86c3473cd1885.html
Yaml config should look like this now ``` PicoZCache: enabled: true # True/False if cache is enabled dir: cache/html/ # Directory where cache should be saved time: 604800 # Interval between caching (period from one to second cache) in seconds, here is 7 days = 60 * 60 * 24 * 7. xhtml_output: false # If true, XHTML Content-Type header will be sent when loading cache page ```
Feature 1
dbeniamine
referenced
this pull request
in Tetras-Libre/pico_cache
Feb 15, 2022
Cache pages with a Querystring
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.
Add possibility to cache pages with querystrings
Use the new way of Pico, how to load config values