add global promotion deadline + fix grane medal

This commit is contained in:
xiaomlove
2022-07-09 18:06:09 +08:00
parent 50759b1cf3
commit afa8cdce99
40 changed files with 1936 additions and 20 deletions

View File

@@ -102,6 +102,10 @@ class Imdb
public function purgeSingle($id)
{
$mainCacheFile = $this->getCacheFilePath($id);
if (!is_file($mainCacheFile)) {
do_log("mainCacheFile: $mainCacheFile not exists, return");
return true;
}
foreach (glob("$mainCacheFile*") as $file) {
if (file_exists($file)) {
do_log("unlink: $file");