So I made this to add support for Domain Access module, if you feel like you want to add it to your module. Feedback?
/**
* 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();
}
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2284131-domain-access-module.patch | 710 bytes | RavindraSingh |
Comments
Comment #1
RavindraSingh commentedYes, @jisuo. Definitely, I will add this as an Feature by you.
Good Job, if you would interested to develop other modules with me please let me know.
Comment #2
RavindraSingh commentedFixed the issue and creating a patch
diff --git a/boost_cache_cleaner.module b/boost_cache_cleaner.module
index f048c7f..305b058 100644
--- a/boost_cache_cleaner.module
+++ b/boost_cache_cleaner.module
@@ -162,6 +162,16 @@ function boost_cache_cleaner_theme_settings_submit($form, &$form_state) {
Comment #3
RavindraSingh commentedComment #5
RavindraSingh commentedComment #6
RavindraSingh commentedComment #7
RavindraSingh commentedI have committed the patch and released dev. Thanks for suggesting.