You're reusing a variable in BCManager.UpdateChanges() - the location never gets set

May 22, 2012 at 9:02 PM

Hi,

Great idea but the locationMod modification variable gets overwritten:

// set the cache location

// set the max age

SPWebConfigModification locationMod = new SPWebConfigModification();
locationMod = generateModification("configuration/SharePoint/BlobCache", "location", location); SPWebConfigModification maxAgeMod = new SPWebConfigModification();
locationMod = generateModification("configuration/SharePoint/BlobCache", "max-age", maxAge.ToString());

Leaves the location as c:\blobcache