Browse Source

Make all Magento tasks to gues where they should run (local or remote).

1.0
Andrés Montañez 11 years ago
parent
commit
fdc9f4e12e
  1. 2
      Mage/Task/BuiltIn/Magento/ClearCacheTask.php
  2. 2
      Mage/Task/BuiltIn/Magento/ClearFullPageCacheTask.php

2
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;
}

2
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;
}

Loading…
Cancel
Save