新增sitemap

This commit is contained in:
2022-03-16 11:36:39 +08:00
parent 3ab345f41c
commit aacc99aa98
2 changed files with 28 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ use app\model\Post as ModelPost;
use app\model\PostCategory;
use app\model\PostTag;
use app\model\Tag;
use think\facade\Cache;
use think\facade\Route;
use think\facade\View;
use think\Request;
@@ -201,8 +202,7 @@ class Post extends Common
$model_post->save($post_data);
Cache::delete('sitemap_last_etag');
return $this->success('保存成功', url('index', ['type' => $model_post->getData('type')]));
}