mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Make all Magento tasks to gues where they should run (local or remote).
This commit is contained in:
		
							parent
							
								
									974304e707
								
							
						
					
					
						commit
						fdc9f4e12e
					
				@ -37,7 +37,7 @@ class ClearCacheTask extends AbstractTask
 | 
				
			|||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $command = 'rm -rf var/cache/*';
 | 
					        $command = 'rm -rf var/cache/*';
 | 
				
			||||||
        $result = $this->runCommandLocal($command);
 | 
					        $result = $this->runCommand($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $result;
 | 
					        return $result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@ class ClearFullPageCacheTask extends AbstractTask
 | 
				
			|||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $command = 'rm -rf var/full_page_cache/*';
 | 
					        $command = 'rm -rf var/full_page_cache/*';
 | 
				
			||||||
        $result = $this->runCommandLocal($command);
 | 
					        $result = $this->runCommand($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $result;
 | 
					        return $result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user