Pug cache continues to serve stale templates after file edits
Pug template caching and stale output When cache: true is enabled, Pug stores compiled templates in memory. If a template file is edited after caching, subsequent renders still use the old compiled function, producing stale content. The documentation recommends clearing pug.cache or restarting the process, but it does not describe automated invalidation. In