1.1.2 • Published 6 years ago
prestashop-cache-clear v1.1.2
PrestaShop Cache Clear
Clear your PrestaShop 1.6 project cache in command line.
Install
$ npm install --save prestashop-cache-clear
Usage
var psClear = require('prestashop-cache-clear');
// Clear PrestaShop cache
psClear.clear();
Options
onComplete
psClear.clear({
onComplete: function () {
// Called after cache cleared.
}
});
onError
psClear.clear({
onError: function () {
// Called after an error.
}
});
Note
The module search for a config/config.inc.php
file or a web/config/config.inc.php
in the project.