2024-01-17 22:10:32 +03:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove all items from the cache
|
|
|
|
*/
|
|
|
|
|
|
|
|
require __DIR__ . '/../lib/bootstrap.php';
|
|
|
|
|
2024-08-07 04:15:43 +03:00
|
|
|
$config = [];
|
|
|
|
if (file_exists(__DIR__ . '/../config.ini.php')) {
|
|
|
|
$config = parse_ini_file(__DIR__ . '/../config.ini.php', true, INI_SCANNER_TYPED);
|
|
|
|
if (!$config) {
|
|
|
|
http_response_code(500);
|
|
|
|
exit("Error parsing config.ini.php\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Configuration::loadConfiguration($config, getenv());
|
2024-01-17 22:10:32 +03:00
|
|
|
|
2024-08-29 23:48:59 +03:00
|
|
|
$container = require __DIR__ . '/../lib/dependencies.php';
|
2024-08-07 04:15:43 +03:00
|
|
|
|
2024-08-29 23:48:59 +03:00
|
|
|
$cache = $container['cache'];
|
2024-01-17 22:10:32 +03:00
|
|
|
|
|
|
|
$cache->clear();
|