初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\library\cache;
|
||||
use think\Cache;
|
||||
class Clear
|
||||
{
|
||||
public static function course(){
|
||||
Cache::clear(\app\common\constant\cache\Keys::COURSE_TAG);
|
||||
Cache::clear(\app\common\constant\cache\Keys::PAGE_TAG);
|
||||
}
|
||||
|
||||
public static function page(){
|
||||
Cache::clear(\app\common\constant\cache\Keys::PAGE_TAG);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user