function cdn_flush_caches in CDN 7.2
Same name and namespace in other branches
- 6.2 cdn.module \cdn_flush_caches()
Implementation of hook_flush_caches().
File
- ./
cdn.module, line 650
Code
function cdn_flush_caches() {
// Force refresh of the blacklist.
cdn_get_blacklist(TRUE);
// Clear aggregated CSS files for pages served via HTTP.
variable_del('cdn_css_cache_files_http');
file_scan_directory('public://cdn/css/http', '/.*/', array(
'callback' => 'drupal_delete_file_if_stale',
));
// Clear aggregated CSS files for pages served via HTTPS.
variable_del('cdn_css_cache_files_https');
file_scan_directory('public://cdn/css/https', '/.*/', array(
'callback' => 'drupal_delete_file_if_stale',
));
}