cache views
This commit is contained in:
parent
c42469abb0
commit
8bfce04a04
@ -10,7 +10,7 @@ const app = express();
|
|||||||
|
|
||||||
app.set('view engine', 'pug');
|
app.set('view engine', 'pug');
|
||||||
app.set('views', path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, 'views'));
|
||||||
app.set('cache views', false);
|
app.set('cache views', true);
|
||||||
|
|
||||||
app.use(express.static(path.join(__dirname)));
|
app.use(express.static(path.join(__dirname)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user