mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 内核垃圾回收
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
package sql
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"time"
|
||||
|
||||
"github.com/88250/lute/ast"
|
||||
@@ -45,7 +45,7 @@ func DisableCache() {
|
||||
|
||||
func ClearBlockCache() {
|
||||
memCache.Clear()
|
||||
runtime.GC()
|
||||
debug.FreeOSMemory()
|
||||
}
|
||||
|
||||
func putBlockCache(block *Block) {
|
||||
|
||||
Reference in New Issue
Block a user