FWIW, the cache_key could be set to "submissions.{}.student_item".format(uuid) -- then you wouldn't need to do the cache resets.