Global: adds general cache layer

This commit is contained in:
李通洲
2026-09-21 22:46:40 +08:00
parent 2f74d6be4d
commit 7f3209181e
14 changed files with 728 additions and 207 deletions
+2
View File
@@ -2,6 +2,7 @@
#include "common/ffdata.h"
#include "detection/version/version.h"
#include "logo/logo.h"
#include "common/FFcache.h"
#include "common/commandoption.h"
#include "common/genconfig.h"
#include "common/init.h"
@@ -815,6 +816,7 @@ static void run(FFdata* data) {
ffTimeSleep(instance.state.dynamicInterval);
fputs("\e[H", stdout); // Move cursor to the top left corner to overwrite the previous output
instance.state.keysHeight = 0; // Reset keysHeight so `ffLogoPrintRemaining` will recalculate it
ffCacheInvalidateAll(); // Drop the detection results cached for the previous round, so that this round re-detects them
} else {
break;
}