Completed function cdi_cache_destroy().