Hello,
I've two concerns.
1. I am currently writing a Plug-In which needs the hookFrontendBeforeOutput Hook.
Sadly this hook isn't called when the maintenance mode is on and you're not logged in.
Is this on purpose? Is there a workaround?
2. Why don't you have hooks while before & after clearing the cache? Here a little hotfix which i needed:
Original:
Modified:
(PS: Didnt use PHP shortcode because it doesn't expand.)
Cheers,
C
I've two concerns.
1. I am currently writing a Plug-In which needs the hookFrontendBeforeOutput Hook.
Sadly this hook isn't called when the maintenance mode is on and you're not logged in.
Is this on purpose? Is there a workaround?
2. Why don't you have hooks while before & after clearing the cache? Here a little hotfix which i needed:
Original:
// ###################### Start clear cache ########################
if ($_REQUEST['do'] == 'clear_cache') {
print_cp_header($vbphrase['clear_system_cache']);
vB_Cache::resetCache(); vB::getDatastore()->resetCache();
print_cp_message($vbphrase['cache_cleared']);
}
if ($_REQUEST['do'] == 'clear_cache') {
print_cp_header($vbphrase['clear_system_cache']);
vB_Cache::resetCache(); vB::getDatastore()->resetCache();
print_cp_message($vbphrase['cache_cleared']);
}
// ###################### Start clear cache ########################
if ($_REQUEST['do'] == 'clear_cache') {
$api = Api_InterfaceAbstract::instance(); $api->invokeHook('hookBeforeClearCache', "");
print_cp_header($vbphrase['clear_system_cache']);
vB_Cache::resetCache(); vB::getDatastore()->resetCache();
print_cp_message($vbphrase['cache_cleared']); $api->invokeHook('hookAfterClearCache', "");
}
if ($_REQUEST['do'] == 'clear_cache') {
$api = Api_InterfaceAbstract::instance(); $api->invokeHook('hookBeforeClearCache', "");
print_cp_header($vbphrase['clear_system_cache']);
vB_Cache::resetCache(); vB::getDatastore()->resetCache();
print_cp_message($vbphrase['cache_cleared']); $api->invokeHook('hookAfterClearCache', "");
}
Cheers,
C
Comment