iOS 5.0.1 aduce o noua metoda de a salva datele aplicatiilor

    iOS 5 a adus extrem de multe schimbari pentru utilizatori si dezvoltatorii de aplicatii insa o buna parte dintre ele nu au fost prezentate de catre compania Apple. Una foarte importanta are legatura cu modul in care aplicatiile salveaza datele in cache si modul in care acest cache este sters. Apple are in iOS 5 un sistem de stergere automata a cache-ului atunci cand spatiul disponibil pe terminalele noastre scade sub o anumita valoare. Cand acea valoare este atinsa, sistemul intra in functiune si sterge tot cache-ul impreuna cu toate datele din el. Pana in iOS 5 acest lucru nu se intampla si in cache erau salvate date importante precum articolele salvate de Instapaper, de exemplu, pentru a fi citite offline.

A common scenario: an Instapaper customer is stocking up an iPad for a long flight. She syncs a bunch of movies and podcasts, downloads some magazines, and buys a few new games, leaving very little free space. Right before boarding, she remembers to download the newest issue of The Economist. (I think highly of my customers.) This causes free space to fall below the threshold that triggers the cleaner, which — in the background, unbeknownst to her — deletes everything that was saved in Instapaper. Later in the flight, with no internet connectivity, she goes to launch Instapaper and finds it completely empty.

    Practic iOS 5 stergea tot cache-ul impreuna cu datele din el atunci cand spatiul disponibil pe terminale atingea o anumita valoare. In iOS 5.0.1 Apple a rezolvat problema dandu-le utilizatorilor dezvoltatorilor posibilitatea de a marca anumite fisiere astfel incat sistemul de stergere sa treaac peste ele si sa le lase in sistem. Modificarea este importanta deoarece articole salvate in aplicatii precum Instapaper vor ramane acolo dar acelasi lucrus e va intampla si pentru multe alte tipuri de date disponibile in iDevice-urile noastre.