Fix always defaulting to DiskCacheAdapter
Consistently use 0 as default resource id