mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
medal show all + fix category cache
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user