SAND-framework/console/command/Cache.php
2020-12-09 10:26:26 +01:00

29 lines
683 B
PHP

<?php
namespace MVC\Command;
class Cache
{
public static function help()
{
print "explaination of the command\n\n";
}
public static function clear()
{
$git_cache_rm = system('rm -f '.VIEW_PATH.'/cache/*', $git_cache_rm_retval);
print $git_cache_rm_retval;
$git_logs_rm = system('rm -f '.LOG_PATH.'/*', $git_logs_rm_retval);
print $git_logs_rm_retval;
print "logs && cache cleared ! \n\n";
}
public static function stabilize()
{
$git_cache_rm = system('rm -f '.VIEW_PATH.'/cache/*', $git_cache_rm_retval);
print $git_cache_rm_retval;
print "cache stabilized ! \n\n";
}
}