Take public visibility into consideration for task results cache parameters