mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-25 00:30:17 +02:00
20 lines
485 B
PHP
20 lines
485 B
PHP
|
<?php
|
||
|
class Mage_Task_BuiltIn_Symfony2_CacheWarmup
|
||
|
extends Mage_Task_TaskAbstract
|
||
|
{
|
||
|
public function getName()
|
||
|
{
|
||
|
return 'Symfony v2 - Cache Warmup [built-in]';
|
||
|
}
|
||
|
|
||
|
public function run()
|
||
|
{
|
||
|
$command = 'app/console cache:clear';
|
||
|
$result = $this->_runLocalCommand($command);
|
||
|
|
||
|
$command = 'app/console cache:warmup';
|
||
|
$result = $result && $this->_runLocalCommand($command);
|
||
|
|
||
|
return $result;
|
||
|
}
|
||
|
}
|