Skip to content

Commit

Permalink
Merge pull request #789 from peuter/invalidate-cache
Browse files Browse the repository at this point in the history
Invalidate cache
  • Loading branch information
ChristianMayer committed Dec 26, 2018
2 parents 3d2e689 + a612870 commit 9b9b1fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/class/cv/ConfigCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ qx.Class.define('cv.ConfigCache', {
this.save(this._cacheKey, {
hash: this.toHash(xml),
VERSION: cv.Version.VERSION,
REV: cv.Version.REV,
data: model.getWidgetDataModel(),
addresses: model.getAddressList(),
configSettings: config
Expand Down Expand Up @@ -102,9 +103,9 @@ qx.Class.define('cv.ConfigCache', {
}
if (localStorage.getItem(cv.Config.configSuffix + "." + this._cacheKey) !== null) {
// compare versions
var cacheVersion = this.getData("VERSION");
qx.log.Logger.debug(this, "Cached version: "+cacheVersion+", CV-Version: "+cv.Version.VERSION);
return (cacheVersion === cv.Version.VERSION);
var cacheVersion = this.getData("VERSION") + '|' + this.getData('REV');
qx.log.Logger.debug(this, "Cached version: "+cacheVersion+", CV-Version: "+cv.Version.VERSION + '|' + cv.Version.REV);
return (cacheVersion === cv.Version.VERSION + '|' + cv.Version.REV);
} else {
return false;
}
Expand Down

0 comments on commit 9b9b1fc

Please sign in to comment.