hexo-swpp 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -353,7 +353,7 @@ const tidyDiff = (dif, expand) => {
353
353
  logger.error(`[buildUpdate] 指定 URL(${url.pathname}) 未查询到缓存规则!`)
354
354
  continue
355
355
  }
356
- if (cache.clean) tidied.updateGlobal = true
356
+ if (!cache.clean) tidied.updateGlobal = true
357
357
  if (it.match(/(\/|\.html)$/)) { // 判断缓存是否是 html
358
358
  if (isMerge(it, tidied)) continue
359
359
  if (mode.html ?? false) tidied.page.add(url.pathname)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "hexo-log": "^3.0.0",