Liturgical-Calendar / LiturgicalCalendarAPI

A PHP script / API endpoint that will generate the Roman Catholic liturgical calendar for any given year, calculating the mobile festivities and the precedence of solemnities, feasts, memorials...
Apache License 2.0
35 stars 9 forks source link

generation time #190

Closed JohnRDOrazio closed 3 months ago

JohnRDOrazio commented 3 months ago

Just out of curiosity, it would be interesting to see how long it takes to calculate and produce a fresh result compared to reading and outputting the cached version of a previous calculation. Perhaps we can add some timing information to the metadata to compare against the client timing...

JohnRDOrazio commented 3 months ago

implemented in commits:

While we're at it, we also implemented a header which will let us know how the data was generated, whether calculated from scratch, or pulled from the server cache file, or from client cache (when the client sends an If-None-Match header with the hash of the request which corresponds with the hash of a server cache file):