fixed bug in get cache handler