mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
medal show all + fix category cache
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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