After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652554 - Add versioning support to SoupCache
Add versioning support to SoupCache
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: Misc
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks: 649963 649965
 
 
Reported: 2011-06-14 12:18 UTC by Sergio Villar
Modified: 2011-06-16 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (4.64 KB, patch)
2011-06-14 12:22 UTC, Sergio Villar
accepted-commit_now Details | Review

Description Sergio Villar 2011-06-14 12:18:18 UTC
Already discused here https://bugzilla.gnome.org/show_bug.cgi?id=649309 for example. We need to deal with changes in the format used to store SoupCache data as we will need to eventually change it.
Comment 1 Sergio Villar 2011-06-14 12:22:31 UTC
Created attachment 189896 [details] [review]
Patch

For the case the index file was saved with a different version than the current SoupCache version we simply remove all the cache data. IMHO it's better to do that for the sake of code simplicity. BTW it's the same approach used by Firefox.
Comment 2 Sergio Villar 2011-06-16 15:08:07 UTC
Committed a85f923f5096b3918a4274af96d18a5fe05224f7