steipete/SDURLCache — pull request #23 by groue (2013-04-16 14:11:13+00:00)
Title: Don't assume there is a single SDURLCache instance per application

Hi,

I'm using SDURLCache in order to control the cache cleanup: thanks for the nice work.

And I'm using several SDURLCache instances across my whole application. Unfortunately, [SDURLCache createDiskCachePath] uses dispatch_once for creating the cache directory once and for all. The problem is that all instances but one will fail storing their cachedURLResponse, since they could not create their own directory on disk.

I don't expect this commit to be accepted as is : it's a very naive fix, and a mere request for comment.