function foundation_purge_concat() { wptouch_remove_directory_files(WPTOUCH_BASE_CONTENT_DIR . '/cache/', 'js'); }
function wptouch_remove_directory($dir_name) { // Check permissions if (current_user_can('manage_options')) { $dir = @opendir($dir_name); if ($dir) { wptouch_remove_directory_files($dir_name); rmdir($dir_name); } } }