make apicache implement clear