Commit ea6683e2 authored by Arto's avatar Arto

Added code for module weight update to the install hook to ensure Boost is...

Added code for module weight update to the install hook to ensure Boost is loaded early on in the Drupal bootstrap.
parent 4bd5b549
......@@ -12,6 +12,8 @@
* Implementation of hook_install(). Installs the current version of the database schema.
*/
function boost_install() {
// Ensure that the module is loaded early in the bootstrap:
db_query("UPDATE {system} SET weight = -90 WHERE name = 'boost'");
// Forcibly disable Drupal's built-in SQL caching to prevent any conflicts of interest:
if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED) {
......
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