Eleventy project failing to find build or dependency cache

I have build caching turned on for an Eleventy site. When I run the deployment, the end of the log reports: 10:00:49.722 Uploading to dependency cache 10:00:49.727 Uploading to build output cache 10:00:50.019 Success: Build output uploaded to build cache. 10:00:51.090 Success: Dependencies uploaded to build cache. On subsequent deployments, I get the following in the build log: 10:02:56.496 Using v2 root directory strategy 10:02:56.518 Success: Finished cloning repository files 10:02:57.246 No build output detected to cache. Skipping. 10:02:57.247 No dependencies detected to cache. Skipping. ...and it proceeds to everything all over again from a blank slate, not from the cache. The site is set up as an Eleventy site, and the build assets are cached into the .cache directory, which CF says is automatically used for Eleventy projects. Am I missing something here?
2 Replies
Seb Duggan
Seb DugganOP4w ago
Anoyone able to suggest something here? I feel like I've tried everything to get it working...
m4rrc0
m4rrc04w ago
Same kind of issue with a much more complicated build process but everything I try to get cache working just fails miserably. I've been banging my head against a wall all day now. The fact that Cloudflare detects everything 'automatically' really does not help as we cannot do much to try and debug anything. I wish cache config could be configured (through the wrangler.json file for instance)

Did you find this page helpful?