mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 08:54:20 +03:00
58544cd61a
* refactor: introduce DI container * add bin/test
24 lines
545 B
PHP
Executable file
24 lines
545 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/**
|
|
* Remove all expired items from the cache
|
|
*/
|
|
|
|
require __DIR__ . '/../lib/bootstrap.php';
|
|
|
|
$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());
|
|
|
|
$container = require __DIR__ . '/../lib/dependencies.php';
|
|
|
|
$cache = $container['cache'];
|
|
|
|
$cache->prune();
|