modify beast_cache_destory()