resFactory / factory

Resource Factory is a universal approach to originating, refining, and rendering Markdown, HTML, type-safe SQL, or other assets that could comprise static sites or engineering artifacts.
GNU Affero General Public License v3.0
0 stars 3 forks source link

Use make-like dependency rules when running in experimental mode #27

Closed shah closed 3 years ago

shah commented 3 years ago

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 or Deno.lstat for file comparison or add hashing if necessary.

shah commented 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.