fix disabled_pattern check in should_create_cache