fixed bug with clearing api-output cache for each course