Skip to content

Comments

improve cacheing of frus volumes and bibliographies#470

Closed
line-o wants to merge 1 commit intoHistoryAtState:masterfrom
line-o:feat/cacheability-frus
Closed

improve cacheing of frus volumes and bibliographies#470
line-o wants to merge 1 commit intoHistoryAtState:masterfrom
line-o:feat/cacheability-frus

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

@line-o
Copy link
Contributor Author

line-o commented Apr 24, 2025

no longer needed

@line-o line-o closed this Apr 24, 2025
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