sitdap/dynamic-image — pull request #9 by Mikhail-Fiadosenka (2012-04-24 08:00:05+00:00)
Title: XmlCacheProvider, DirtyTrackingObject

I've tried to use XML caching with SQL DB as a datasource and discovered that SqlDatabaseImageSource leaves dependency.Text4 property as null. This null value wasn't checked in XmlCacheProvider and thus lead to exception.

Another problem was related to cache key generation. DirtyTrackingObject is calling default .ToString() method on arrays and the resulting key looks like this: "System.String[]". I've added some code that iterates through the array elements and calls ToString() on elements.