Added require_cache functionality