Old OpenSim installations may have no AssetCaching setting in config-include/StandaloneCommon.ini [Modules] (or no [Modules] at all)

If this is the case, this patch makes CenomeAssetCache the default cache (which matches that selected in StandaloneCommon.ini.example)
Not having an asset cache may lead to a continual loop of appearance baking failures and cause dynamic textures not to work, among other effects
mysql-performance
Justin Clark-Casey (justincc) 2010-02-05 18:09:27 +00:00
parent 0a084a31e9
commit 7058a4c259
1 changed files with 3 additions and 1 deletions

View File

@ -324,7 +324,9 @@ namespace OpenSim.Region.CoreModules.Asset
if (moduleConfig == null)
return;
string name = moduleConfig.GetString("AssetCaching");
// We're going to make CenomeAssetCache the default if there is no AssetCaching setting at all. This
// matches the default StandaloneCommon.ini.example
string name = moduleConfig.GetString("AssetCaching", Name);
//Log.DebugFormat("[XXX] name = {0} (this module's name: {1}", name, Name);
if (name != Name)