Added a method createCache() to a simple creating the cache for modules