12
我在iOS模擬器中發現,庫緩存路徑中有一個名爲Cache.db的文件。庫緩存路徑中的iOS應用Cache.db有什麼用處?
有一些表在db:
sqlite3 Cache.db
SQLite version 3.7.5
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .table
cfurl_cache_blob_data cfurl_cache_response
cfurl_cache_receiver_data cfurl_cache_schema_version
我想知道這是什麼嗎?我們怎樣才能使用這個數據庫?
要添加到rckones中,您不需要執行任何操作,特別是要使用此緩存。我相信它會緩存特定的URL請求,因此如果您請求host.com/webservice/1和稍後請求相同的確切字符串,它將幾乎立即加載。 –
禁用請求緩存:http://stackoverflow.com/questions/405151/is-it-possible-to-prevent-an-nsurlrequest-from-caching-data-or-remove-cached-dat –
該文件是否被清除當應用程序關閉或什麼? – atuljangra