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
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.0');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-12-26');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-01-04');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+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}");
}
}
/**