putyourlightson / craft-blitz

Intelligent static page caching for creating lightning-fast sites with Craft CMS.
https://putyourlightson.com/plugins/blitz
Other
149 stars 36 forks source link

Blitz entry sidebar widget metadata when Blitz is used exclusively as a reverse proxy purger #718

Open kylecotter opened 14 hours ago

kylecotter commented 14 hours ago

Feature Request

Our typical setup consists of using Blitz exclusively as a reverse proxy purger for Cloudflare (same approach as outlined in #502) using the DummyStorage driver.

The recent introduction of the element sidebar widget looks to be a useful tool for helping content editors understand cache status, but doesn’t provide any meaningful data when used with the DummyStorage driver (which makes sense).

Was wondering how feasible it would be to get some of that useful metadata stored without actually having a File or YiiCache driver in use.

Bonus if the Refresh button that shows in the sidebar widget could trigger a Cloudflare purge for that URL.

Thanks for any insight, Ben!

Plugin Version

5.9.0

bencroker commented 13 hours ago

Blitz cannot know whether a page is actually cached without having a cache storage driver to check. That means that I should probably remove the sidebar panel when the DummyStorage driver is being used. Sorry, but I don’t really see a way around this limitation.