Added enable_cache_dir attrbibute to enable or disable cache_dir and added cache_size default