prestashop-cache-clear

1.1.2 • Public • Published

PrestaShop Cache Clear

npm version

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i prestashop-cache-clear

    Weekly Downloads

    3

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • tomke