File system cache for donot.
npm install @donotjs/donot-cache-filesystem.donot-cache-filesystem
======================

File system cache engine for donot.
Usage: new FileSystemCache(cacheDir, options)
var http = require('http'),
donot = require('donot'),
FileSystemCache = require('donot-cache-filesystem');
var server = http.createServer(donot(__dirname + '/public', {
cache: new FileSystemCache(yourCacheDir, {
createDirectory: false
})
));
server.listen(8000);
> Remark. It does not make sense to use caching without one or more engine plug-ins - as only an engine's output is cached. See donot for available engine plug-ins.
There is only one available option for this plug-in.
| Name | Type | Default | Description |
|:--------------------|:--------|:--------|:------------|
| createDirectory | Boolean | false | Create directory if it does not exist. |
MIT