CoderDojo / community-platform

Zen, the CoderDojo Community Platform!
https://zen.coderdojo.com
MIT License
121 stars 55 forks source link

Dust templates are inconsistently cached when running locally #1155

Open DanielBrierton opened 7 years ago

DanielBrierton commented 7 years ago

./localdev.js run zen watches for changes in dust files, and restarts the cp-zen-platform processes to make the new changes be picked up. Despite this, you sometimes get the new template, sometimes get the old one.

I think this may have something to do with the fact that multiple processes (one for each thread/core) for each service, and perhaps only one gets restarted.

The ideal scenario is to disabled dustjs's caching and get rid of the file watcher.

Wardormeur commented 7 years ago

You mean deactivate caching for dev?