Function Reference: geodir_delete_map_cache
Summary
Delete the map cache files.
Change Log
Since: 1.6.22
Source File
geodir_delete_map_cache() is located in geodirectory-functions/post_functions.php [Line: 3238]
Source Code
function geodir_delete_map_cache(){ $files = glob(realpath(dirname(__FILE__))."/map-functions/map-cache/*.json"); // get all file names foreach($files as $file){ // iterate files if(is_file($file)) unlink($file); // delete file } }