File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default class CustomEngine extends TemplateEngine {
1717 this . _defaultEngine = undefined ;
1818
1919 // Enable cacheability for this template
20- if ( this . entry ?. compileOptions ?. cache ) {
20+ if ( this . entry ?. compileOptions ?. cache !== undefined ) {
2121 this . cacheable = this . entry . compileOptions . cache ;
2222 } else if ( this . needsToReadFileContents ( ) ) {
2323 this . cacheable = true ;
Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ export default class JavaScript extends TemplateEngine {
9292 mod = this . eleventyConfig . userConfig . virtualTemplates [ relativeInputPath ] . content ;
9393 } else {
9494 let isEsm = this . eleventyConfig . getIsProjectUsingEsm ( ) ;
95+ let cacheBust = ! this . cacheable || ! this . config . useTemplateCache ;
9596 mod = await EleventyImport ( inputPath , isEsm ? "esm" : "cjs" , {
96- cacheBust : ! this . config . useTemplateCache ,
97+ cacheBust,
9798 } ) ;
9899 }
99100
You can’t perform that action at this time.
0 commit comments