Skip to content
Extraits de code Groupes Projets
Valider feead36c rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #6133 added a command to clear all caches

parent 54616548
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,6 +10,9 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API' ...@@ -10,6 +10,9 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API'
### New APIs ### New APIs
* It is now easier to generate the URL for a menu item see [#6140](https://github.com/piwik/piwik/issues/6140), [urlForDefaultAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlfordefaultaction), [urlForAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlforaction), [urlForModuleAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlformoduleaction) * It is now easier to generate the URL for a menu item see [#6140](https://github.com/piwik/piwik/issues/6140), [urlForDefaultAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlfordefaultaction), [urlForAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlforaction), [urlForModuleAction()](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu#urlformoduleaction)
### New commands
* `core:clear-caches` Lets you easily delete all caches. This command can be useful for instance after updating Piwik files manually.
## Piwik 2.6.0 ## Piwik 2.6.0
...@@ -75,7 +78,7 @@ We are using `@since` annotations in case we are introducing new API's to make i ...@@ -75,7 +78,7 @@ We are using `@since` annotations in case we are introducing new API's to make i
* [MenuUser](http://developer.piwik.org/api-reference/Piwik/Menu/MenuUser) to add or modify user menu items * [MenuUser](http://developer.piwik.org/api-reference/Piwik/Menu/MenuUser) to add or modify user menu items
* [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) to add scheduled tasks * [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) to add scheduled tasks
### New commmands ### New commands
* `generate:theme` Let's you easily generate a new theme and customize colors, see the [Theming guide](http://developer.piwik.org/guides/theming) * `generate:theme` Let's you easily generate a new theme and customize colors, see the [Theming guide](http://developer.piwik.org/guides/theming)
* `generate:update` Let's you generate an update file * `generate:update` Let's you generate an update file
* `generate:report` Let's you generate a report * `generate:report` Let's you generate a report
...@@ -93,7 +96,7 @@ We are using `@since` annotations in case we are introducing new API's to make i ...@@ -93,7 +96,7 @@ We are using `@since` annotations in case we are introducing new API's to make i
### Deprecations ### Deprecations
### New features ### New features
### New APIs ### New APIs
### New commmands ### New commands
### New guides ### New guides
### Internal change ### Internal change
--> -->
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Filesystem;
use Piwik\Plugin\ConsoleCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
*/
class ClearCaches extends ConsoleCommand
{
protected function configure()
{
$this->setName('core:clear-caches');
$this->setDescription('Deletes all caches. This command can be useful for instance after updating Piwik files manually.');
}
/**
* Execute command like: ./console core:clear-caches
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Filesystem::deleteAllCacheOnUpdate();
$this->writeSuccessMessage($output, array('Caches cleared'));
}
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter