mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1266 (clearing offline)
- Clearing offline now clears the cached stories, text, and images from the database.
This commit is contained in:
parent
61bbe9ff5f
commit
402d5c2eea
1 changed files with 3 additions and 0 deletions
|
@ -1147,6 +1147,9 @@ static NSArray<NSString *> *NewsBlurTopSectionNames;
|
|||
[appDelegate.database inDatabase:^(FMDatabase *db) {
|
||||
[db executeUpdate:@"VACUUM"];
|
||||
[appDelegate setupDatabase:db force:YES];
|
||||
[db executeUpdate:@"DELETE FROM stories"];
|
||||
[db executeUpdate:@"DELETE FROM text"];
|
||||
[db executeUpdate:@"DELETE FROM cached_images"];
|
||||
[appDelegate deleteAllCachedImages];
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
[[NSUserDefaults standardUserDefaults] setObject:@"Cleared all stories and images!"
|
||||
|
|
Loading…
Add table
Reference in a new issue