Skip to content

Commit

Permalink
adding clear
Browse files Browse the repository at this point in the history
  • Loading branch information
razzed committed Jul 22, 2021
1 parent b5003a5 commit ba3d867
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion command/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ protected function run() {
protected function run_arg($arg) {
$method = "_exec_$arg";
if (method_exists($this, $method)) {
$this->$method();
return $this->$method();
} else {
$this->error("No such command {arg}", array(
"arg" => $arg,
));
return 1;
}
}

protected function _exec_clear() {
$this->application->cache_clear();
return 0;
}
}

0 comments on commit ba3d867

Please sign in to comment.