ios - Worklight: Encrypted Cache size always increasing - destroy not work -


i using wl.encryptedcache , saving user id , password throughout user session , once user session expires or user explicitly logs out app, destroying encrypted cache using 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 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 signal 9: killed: 9 may 13 11:51:59 iphone dtpower[5858] <warning>: task info failed task bh.com.my.cardapp may 13 11:52:01 iphone reportcrash[9846] <error>: libmobilegestalt copysystemversiondictionaryvalue: not lookup releasetype system version dictionary may 13 11:52:01 iphone reportcrash[9846] <notice>: saved crashreport /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 

what see in ios 5 device, local storage increasing in size of app folder (documents & data). in testing first made sure app removed; next installed , three-four times logged in , logged-out... , cache size kept increasing.

as mentioned, on each log out calling destroy method , getting executed since after destroy if search keys not there, hence destroyed.

is there fix in latest v5.0.6? using v5.0.5 there workarounds?

i tried encryptedcache sample in worklight 5.0.6.1 using chrome (windows 7); can see in dev tools (>> resources >> local storage) data getting deleted once wl.encryptedcache.destroy being invoked.

i don't think should different in ios 5 or ios 6.

note: in ios 5 local storage considered temporary data can deleted @ time os.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -