Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
<?php
/**
* Callback function for boost cache cleaner.
*/
function boost_cache_cleaner_callback() {
// Check if user has access to this function.
if (!user_is_anonymous()) {
if (module_exists('domain')) {
global $base_root;
foreach (domain_domains() as $domain) {
if (isset($domain['path'])) {
$base_root = $domain['path'];
boost_flush_caches();
}
}
} else {
boost_flush_caches();
}
}
}
?>