ministryofjustice / justice-gov-uk

Justice UK website
https://www.justice.gov.uk/
MIT License
2 stars 0 forks source link

Base caching functionality #142

Closed wilson1000 closed 4 months ago

EarthlingDavey commented 4 months ago

@wilson1000 This is in a rough WIP state, but it can be seen working locally.

Visit justice.docker/somepage and inspect the response headers. First should be a cache MISS, subsequent responses should be a cache HIT. Visit justice.docker/purge-cache/somepage and the cache for that page will be cleared. Verify by re-visiting justice.docker/somepage, you should see a cache MISS.

Todo, should we make a github repo, similar to wordpress-base, for building the module? It can be simpler than wordpress base, as it can publish releases as zip, and doesn't need to push any images to dockerhub. Do we use a plugin or write our own code to trigger the purge-cache endpoint on content update?