Subversion Repositories bysoftdeveloper

[/] [modules/] [bysoftdeveloper/] [clearcache.php] - Diff between revs 18 and 32

Show entire file | Ignore whitespace | Details | Blame | View Log

Rev 18 Rev 32
Line 7... Line 7...
exec($phpBinaryPath . ' -v', $return);
exec($phpBinaryPath . ' -v', $return);
 
 
if (strpos($return[0], 'PHP') === false) {
if (strpos($return[0], 'PHP') === false) {
        echo "\"$phpBinaryPath\" isn't PHP CLI, please change it in bysoftdeveloper.ini";
        echo "\"$phpBinaryPath\" isn't PHP CLI, please change it in bysoftdeveloper.ini";
} else {
} else {
        $cleanCacheCommand = $phpBinaryPath . ' bin/php/ezcache.php --clear-all --no-colors';
        $cleanCacheCommand = $phpBinaryPath . ' bin/php/ezcache.php --clear-all --no-colors --purge';
        exec($cleanCacheCommand, $output, $status);
        exec($cleanCacheCommand, $output, $status);
        if ($status == 0) {
        if ($status == 0) {
                echo 'Clear Cache Done!';
                echo 'Clear Cache Done!';
        }
        }
}
}