[BUGFIX] Fix clear_cache for XCache < 3.0