From fdc9f4e12ee46a922385d67b9389c241d64b7230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Thu, 7 Nov 2013 23:33:19 -0200 Subject: [PATCH] Make all Magento tasks to gues where they should run (local or remote). --- Mage/Task/BuiltIn/Magento/ClearCacheTask.php | 2 +- Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/Task/BuiltIn/Magento/ClearCacheTask.php b/Mage/Task/BuiltIn/Magento/ClearCacheTask.php index 3d5f372..2f08d0e 100644 --- a/Mage/Task/BuiltIn/Magento/ClearCacheTask.php +++ b/Mage/Task/BuiltIn/Magento/ClearCacheTask.php @@ -37,7 +37,7 @@ class ClearCacheTask extends AbstractTask public function run() { $command = 'rm -rf var/cache/*'; - $result = $this->runCommandLocal($command); + $result = $this->runCommand($command); return $result; } diff --git a/Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php b/Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php index a1c8f8b..2d9997a 100644 --- a/Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php +++ b/Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php @@ -37,7 +37,7 @@ class ClearFullPageCacheTask extends AbstractTask public function run() { $command = 'rm -rf var/full_page_cache/*'; - $result = $this->runCommandLocal($command); + $result = $this->runCommand($command); return $result; }