Replaced Exception with a return when no cachePrefix is given