medal show all + fix category cache

This commit is contained in:
xiaomlove
2023-01-04 19:35:06 +08:00
parent 0b1de25999
commit 3b69425a97
7 changed files with 21 additions and 12 deletions
+6 -1
View File
@@ -992,12 +992,17 @@ function clear_setting_cache()
}
/**
* @see functions.php::get_category_row()
* @see functions.php::get_category_row(), genrelist()
*/
function clear_category_cache()
{
do_log("clear_category_cache");
\Nexus\Database\NexusDB::cache_del('category_content');
$searchBoxList = \App\Models\SearchBox::query()->get(['id']);
foreach ($searchBoxList as $item) {
\Nexus\Database\NexusDB::cache_del("category_list_mode_{$item->id}");
}
}
/**