opt: cache clean

This commit is contained in:
My-Responsitories
2026-06-05 01:54:15 +08:00
parent 68cf91274f
commit 2df1277fca
7 changed files with 18 additions and 47 deletions

View File

@@ -1,5 +1,4 @@
import 'dart:io';
import 'dart:math' show pow;
import 'package:PiliPlus/common/widgets/gesture/horizontal_drag_gesture_recognizer.dart'
show deviceTouchSlop;
@@ -598,7 +597,7 @@ abstract final class Pref {
_setting.get(SettingBoxKey.showPgcTimeline, defaultValue: true);
static num get maxCacheSize =>
_setting.get(SettingBoxKey.maxCacheSize) ?? pow(1024, 3);
_setting.get(SettingBoxKey.maxCacheSize) ?? 1 << 30;
static bool get optTabletNav =>
_setting.get(SettingBoxKey.optTabletNav, defaultValue: true);
@@ -717,9 +716,6 @@ abstract final class Pref {
!Platform.isIOS &&
_setting.get(SettingBoxKey.dynamicColor, defaultValue: true);
static bool get autoClearCache =>
_setting.get(SettingBoxKey.autoClearCache, defaultValue: false);
static bool get enableSystemProxy =>
_setting.get(SettingBoxKey.enableSystemProxy, defaultValue: false);