remove expired cacheitems

if we have expired items in the cache, we should first remove them.