add more info

This commit is contained in:
slonkazoid 2024-12-16 23:03:56 +03:00
parent a4846db97f
commit 634e3a1696
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -129,6 +129,18 @@ safely use `jq` to parse it.
the rest is normal
### cache invalidation
due to how blag works, the hash of the query params is stored alongside the
mtime of the post file. you can only tell bingus-blog "hey, don't cache me!"
from a post, but sometimes you need to invalidate the existing cache for all
query param combinations. to do that, `touch -c "$1"` from your post file.
this sets the mtime for the post to right now, invalidating the reference to
it as bingus-blog believes that the contents have changed.
to improve cache availability, it is considered good practice to always set
`DONT_CACHE` if there is at least one query param.
### fastblag
:eyes: