11ty/eleventy-fetch

Add more debug output to AssetCache

clottman opened this issue · 1 comments

When manually storing data in the cache (example from site, if you don't call asset.isCacheValid() and aren't using any other Eleventy-Fetch code, running in debug mode won't show any output at all from the Eleventy Fetch plugin.

This makes it hard to know if your asset cache is working and if not, why.

Things that I'd love to have included in the verbose/debug output:

  • writing to a particular cache (asset.save called)
  • retrieved cached value (asset.getCachedValue() called)
  • file path that caches are being stored in

Shipping with Fetch v4.0.1