pageboard / server

Web site building system - server packages
MIT License
4 stars 0 forks source link

api: cache control for maintenance #87

Open kapouer opened 3 years ago

kapouer commented 3 years ago

When doing manual maintenance on database, it is often useful to be able to reset the caching proxy for a specific domain. However the domain is not necessarily known, and the HTTP method might be cumbersome and subject to change. Instead, expose a "cache.clear" api that takes a site id and makes the appropriate call through the proxy.

kapouer commented 3 years ago
curl -XPOST https://${site_id}.pageboard.io/.well-known/upcache

might work but it triggers a bug somehow.

kapouer commented 3 years ago

also i didn't verify it does a proper redirection