[mob][photos] Schedule update magic cache in 10 seconds if remote asset has changed
This commit is contained in:
@@ -77,7 +77,11 @@ class MagicCacheService {
|
||||
Future<void> _updateCacheIfNeeded() async {
|
||||
final jsonFile = await RemoteAssetsService.instance
|
||||
.getAssetIfUpdated(_kMagicPromptsDataUrl);
|
||||
if (jsonFile != null) {}
|
||||
if (jsonFile != null) {
|
||||
Future.delayed(const Duration(seconds: 10), () {
|
||||
unawaited(updateMagicCache());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<int>> getMatchingFileIDsForPromptData(
|
||||
|
||||
Reference in New Issue
Block a user