From: Jay Freeman (saurik) Date: Wed, 19 Oct 2011 22:46:49 +0000 (+0000) Subject: Fixed the cache clearing code. X-Git-Tag: v0.9.3902~23 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/546a205b9216b8dbbc38d6ebe5b423536a24609d Fixed the cache clearing code. --- diff --git a/Settings.mm b/Settings.mm index e94022a..59c35e5 100644 --- a/Settings.mm +++ b/Settings.mm @@ -439,17 +439,18 @@ static NSString *_plist; unlink("/User/Library/Caches/com.apple.springboard-imagecache-smallicons"); unlink("/User/Library/Caches/com.apple.springboard-imagecache-smallicons.plist"); - unlink("/User/Library/Cache/com.apple.SpringBoard.folderSwitcherLinen"); - unlink("/User/Library/Cache/com.apple.SpringBoard.notificationCenterLinen"); + unlink("/User/Library/Caches/com.apple.SpringBoard.folderSwitcherLinen"); + unlink("/User/Library/Caches/com.apple.SpringBoard.notificationCenterLinen"); - unlink("/User/Library/Cache/com.apple.SpringBoard.folderSwitcherLinen.0"); - unlink("/User/Library/Cache/com.apple.SpringBoard.folderSwitcherLinen.1"); - unlink("/User/Library/Cache/com.apple.SpringBoard.folderSwitcherLinen.2"); - unlink("/User/Library/Cache/com.apple.SpringBoard.folderSwitcherLinen.3"); + unlink("/User/Library/Caches/com.apple.SpringBoard.folderSwitcherLinen.0"); + unlink("/User/Library/Caches/com.apple.SpringBoard.folderSwitcherLinen.1"); + unlink("/User/Library/Caches/com.apple.SpringBoard.folderSwitcherLinen.2"); + unlink("/User/Library/Caches/com.apple.SpringBoard.folderSwitcherLinen.3"); system("rm -rf /User/Library/Caches/SpringBoardIconCache"); system("rm -rf /User/Library/Caches/SpringBoardIconCache-small"); system("rm -rf /User/Library/Caches/com.apple.IconsCache"); + system("rm -rf /User/Library/Caches/com.apple.newsstand"); system("rm -rf /User/Library/Caches/com.apple.springboard.sharedimagecache"); system("killall lsd SpringBoard");