Commit aabba564 authored by geerlingguy's avatar geerlingguy Committed by bgm

Issue #1807186 : Don't log cache expiration messages on cron if debug info not set

parent d87d8e4d
......@@ -345,7 +345,9 @@ function boost_cron() {
if (isset($_boost['base_dir']) && variable_get('boost_expire_cron', BOOST_EXPIRE_CRON)) {
$count = _boost_rmdir($_boost['base_dir'], FALSE);
watchdog('boost', 'Expired %count stale files from static page cache.', array('%count' => $count), WATCHDOG_NOTICE);
if (variable_get('boost_message_debug', BOOST_MESSAGE_DEBUG)) {
watchdog('boost', 'Expired %count stale files from static page cache.', array('%count' => $count), WATCHDOG_NOTICE);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment