mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
* add clear_cache.php bin command
This commit is contained in:
18
system/bin/clear_cache.php
Normal file
18
system/bin/clear_cache.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
if(PHP_SAPI !== 'cli') {
|
||||
die('This script can be run only in command line mode.');
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/../../common.php';
|
||||
require_once SYSTEM . 'functions.php';
|
||||
require_once SYSTEM . 'init.php';
|
||||
|
||||
if(clearCache()) {
|
||||
echo 'Cache cleared.';
|
||||
}
|
||||
else {
|
||||
echo 'Unexpected error.';
|
||||
}
|
||||
|
||||
echo PHP_EOL;
|
Reference in New Issue
Block a user