Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache pages with Querystrings Refactor Config for V2 #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcus-at-localhost
Copy link

Add possibility to cache pages with querystrings
Use the new way of Pico, how to load config values

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
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.

1 participant