Fix bug where cache would not generate for non recurring tasks