return history_cache_task to matches_simple_selector function