Fixed del() and clear()

Timeouts are now cleared before deleting cache records, otherwise programs hang waiting for the irrelevant timeouts to clear on their own.