cache_save function

Save a cache file (name generated with code_name()