Skip to content

Commit

Permalink
Removes timeout property declaration for the cache entity service
Browse files Browse the repository at this point in the history
  • Loading branch information
andparker committed Jul 28, 2015
1 parent 5d72f94 commit 8409ace
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/service/entities/plugin_setting_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,18 +483,17 @@ module.exports = function PluginSettingServiceModule(pb) {

var options = {
objType: objType,
timeout: pb.config.plugins.caching.memory_timeout,
site: site,
onlyThisSite: onlyThisSite
};

if (useMemory) {
options.timeout = pb.config.plugins.caching.memory_timeout;
services.push(new pb.MemoryEntityService(options));
}

//add cache service
if (useCache) {
options.timeout = 3600;
services.push(new pb.CacheEntityService(options));
}

Expand All @@ -517,4 +516,4 @@ module.exports = function PluginSettingServiceModule(pb) {
return self.adminThemeSettingsService;
}
return PluginSettingService;
}
}

0 comments on commit 8409ace

Please sign in to comment.