feat: delete page
This commit is contained in:
1 parent
faa1f389d9
commit
658c105ab5
24 files changed
+369
-120
No files matched your search
@@ -1,6 +1,8 @@
|
||||
const _ = require('lodash')
|
||||
const cfgHelper = require('../helpers/config')
|
||||
const Promise = require('bluebird')
|
||||
const fs = require('fs-extra')
|
||||
const path = require('path')
|
||||
|
||||
/* global WIKI */
|
||||
|
||||
@@ -22,6 +24,9 @@ module.exports = {
|
||||
}
|
||||
})
|
||||
|
||||
// Clear content cache
|
||||
fs.emptyDir(path.join(WIKI.ROOTPATH, 'data/cache'))
|
||||
|
||||
return this
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user