Skip to content

Commit

Permalink
Merge "Closes-Bug: #1544828 Do not cache the project list in config p…
Browse files Browse the repository at this point in the history
…age."
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 23, 2016
2 parents 8832f4a + fb3f1ed commit 569ca34
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions webroot/common/ui/js/controller.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ define([

$(contentContainer).html(dataErrorTemplate(dataErrorConfig));
}
},
}/*,
cacheConfig : {
ucid: ctwc.UCID_BC_ALL_SA_SETS,
loadOnTimeout: false,
cacheTimeout: cowc.DOMAIN_CACHE_UPDATE_INTERVAL
}
*/
}
};

Expand Down Expand Up @@ -265,7 +266,7 @@ define([
};

this.getProjectListModelConfig = function(domainObj, dropdownOptions) {
return {
var modelConfig = {
remote: {
ajaxConfig: {
url: ctwc.getProjectsURL(domainObj,
Expand All @@ -287,13 +288,18 @@ define([
$(contentContainer).html(dataErrorTemplate(dataErrorConfig));
}
},
cacheConfig : {
};
if ((null == dropdownOptions) ||
(null == dropdownOptions['config']) ||
(false == dropdownOptions['config'])) {
modelConfig.cacheConfig = {
ucid: ctwc.get(ctwc.UCID_BC_DOMAIN_ALL_PROJECTS,
domainObj.name),
loadOnTimeout: false,
cacheTimeout: cowc.PROJECT_CACHE_UPDATE_INTERVAL
}
};
};
}
return modelConfig;
};

this.getDNSListModelConfig = function(dns) {
Expand Down

0 comments on commit 569ca34

Please sign in to comment.