Closed shah closed 3 years ago
After doing some investigation, it seems like this might not be as beneficial as I thought. In one of our sites, it takes about 5 seconds to generate over 1,000 pages and adding the caching cuts that down to 2.5 seconds to 3 seconds for a single file update. It's not clear that caching will be that valuable.
When the site is running in sandbox or experimental mode, add aggressive make-like dependency caching rules which will not originate or regenerate files if the content has not changed. We can use
Deno.stat
orDeno.lstat
for file comparison or add hashing if necessary.