Fix cache_clear()
Add class decorator