工作灯:加密的高速缓存大小总是增加 - 销毁不行
问题描述:
我使用WL.EncryptedCache
,只保存整个用户会话,一旦用户会话过期或用户明确地从App注销,然后我破坏使用加密缓存中的用户ID和密码WL.EncryptedCache.destroy
。工作灯:加密的高速缓存大小总是增加 - 销毁不行
May 13 11:51:55 iPhone CardApp[9836] <Warning>: [LOG] clear badge
May 13 11:51:56 iPhone CardApp[9836] <Warning>: Loading stop
May 13 11:51:56 iPhone CardApp[9836] <Warning>: Original Webview bounds {{0, 0}, {320, 460}}, frame {{0, 0}, {320, 460}}
May 13 11:51:56 iPhone CardApp[9836] <Warning>: tabbar bounds: {{0, 411}, {320, 49}}. WebView bounds: {{0, 0}, {320, 411}}
May 13 11:51:56 iPhone CardApp[9836] <Warning>: [ERROR] Invalid argument value '[object Object]', expected null or 'string'.
May 13 11:51:57 iPhone CardApp[9836] <Warning>: [ERROR] [https://mydomain:443/myApp/apps/services/api/CardApp/iphone/query] exception.
May 13 11:51:58 iPhone com.apple.launchd[1] (UIKitApplication:com.apple.mobilephone[0x2e4d][9804]) <Notice>: (UIKitApplication:com.apple.mobilephone[0x2e4d]) Exited: Killed: 9
May 13 11:51:58 iPhone com.apple.launchd[1] (com.apple.tccd[9805]) <Notice>: (com.apple.tccd) Exited: Killed: 9
May 13 11:51:58 iPhone com.apple.launchd[1] (com.apple.librariand[9840]) <Notice>: (com.apple.librariand) Exited: Killed: 9
May 13 11:51:58 iPhone UserEventAgent[13] <Notice>: jetsam: kernel termination snapshot being created
May 13 11:51:58 iPhone com.apple.launchd[1] (com.apple.TextInput.kbd[9823]) <Notice>: (com.apple.TextInput.kbd) Exited: Killed: 9
May 13 11:51:58 iPhone backboardd[26] <Warning>: Application 'UIKitApplication:com.apple.mobilephone[0x2e4d]' exited abnormally with signal 9: Killed: 9
May 13 11:51:58 iPhone com.apple.launchd[1] (UIKitApplication:bh.com.my.CardApp[0xf688][9836]) <Notice>: (UIKitApplication:bh.com.my.CardApp[0xf688]) Exited: Killed: 9
May 13 11:51:58 iPhone backboardd[26] <Warning>: Application 'UIKitApplication:bh.com.my.CardApp[0xf688]' exited abnormally with signal 9: Killed: 9
May 13 11:51:59 iPhone DTPower[5858] <Warning>: Task info failed for task bh.com.my.CardApp
May 13 11:52:01 iPhone ReportCrash[9846] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
May 13 11:52:01 iPhone ReportCrash[9846] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2013-05-13-115201.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
May 13 11:53:59 iPhone backboardd[26] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
May 13 11:53:59 iPhone backboardd[26] <Notice>: MultitouchHID: detection mode: 0->255
我在的iOS 5看什么设备,是本地存储始终在App文件夹(文件&数据)的规模日益扩大。在我的测试中,我首先确保应用程序被删除;接下来我安装了它,然后我只登录和注销了三次,并且缓存大小不断增加。
如上所述,在每次登出时,我都调用了destroy方法,并且它正在成功执行,因为在销毁后如果我搜索键,那么它们不在那里,因此被销毁。
在最新的v5.0.6中是否有任何修复?目前我正在使用v5.0.5 是否有解决方法?
答
我尝试使用Chrome(Windows 7)在Worklight 5.0.6.1中的EncryptedCache sample;在WL.EncryptedCache.destroy被调用后,我可以在开发工具(>>资源>>本地存储)中清楚地看到数据被删除。
我不认为它应该在的iOS 5或iOS任何不同6.
注:在iOS 5中本地存储被认为是可以通过OS随时删除临时数据。
请发送样品 – rooftop 2013-05-13 10:45:00
是的,它被删除了,下一次当我搜索前面的键时,它返回null ...这意味着它删除了Cache。 – AAhad 2013-05-13 16:03:30