made cache configurable
added cache to menu and css/js file generation