SAND-framework/console/command/cache.class.php
Emmanuel ROY 3c457d3af8 Test sur la création des modules par une commande console -> OK!
Test sur une api rest -> OK!
Test sur le deplacement d'une autre page de compte -> OK!

TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
2020-04-01 09:45:51 +02:00

26 lines
646 B
PHP

<?php
class cache
{
static public function help(){
print "explaination of the command\n\n";
}
static public 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";
}
static public 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";
}
}