mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
19 lines
333 B
PHP
19 lines
333 B
PHP
<?php
|
|
|
|
if(PHP_SAPI !== 'cli') {
|
|
echo 'This script can be run only in command line mode.';
|
|
exit(1);
|
|
}
|
|
|
|
require_once __DIR__ . '/../../common.php';
|
|
require_once SYSTEM . 'functions.php';
|
|
require_once SYSTEM . 'init.php';
|
|
|
|
if(clearCache()) {
|
|
echo 'Cache cleared.' . PHP_EOL;
|
|
}
|
|
else {
|
|
echo 'Unexpected error.' . PHP_EOL;
|
|
exit(2);
|
|
}
|