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

improve cacheing of frus volumes and bibliographies #470

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

line-o
Copy link
Contributor

@line-o line-o commented Jan 20, 2025

As these pages do take a significant amount of time to render it is crucial to cache them as long as possible.

With this PR applied rendered pages last-modified header will be set to the last commit date of the source file.

NOTE: needs

Utilizing the frus.xqm that is added with HistoryAtState/frus#343

The date in the map is not the last modified date in the database which might change frequently but the last commit date.
@line-o line-o requested review from joewiz and windauer and removed request for joewiz January 20, 2025 13:02
@line-o line-o marked this pull request as draft January 21, 2025 09:25
@@ -138,28 +140,26 @@ declare variable $config:PUBLICATIONS :=
"collection": $config:FRUS_VOLUMES_COL,
"document-last-modified": function($document-id) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rewrite to use a single function

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