summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 06:07:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 06:07:38 +0000
commit37eb92447f21d8acd984df0f3365e174283869ed (patch)
tree5697530087374fe09ca0c805eebabf9aa4f8c1c8 /install.php
parent804ff089f1bd65c40dda4f949e2ea5fecd114b9b (diff)
downloadbrdo-37eb92447f21d8acd984df0f3365e174283869ed.tar.gz
brdo-37eb92447f21d8acd984df0f3365e174283869ed.tar.bz2
#615528 by David_Rothstein: Fixed Incorrect code comment regarding DrupalFakeCache in the installer.
Diffstat (limited to 'install.php')
-rw-r--r--install.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/install.php b/install.php
index 08271bdec..2e00d977d 100644
--- a/install.php
+++ b/install.php
@@ -258,13 +258,20 @@ function install_begin_request(&$install_state) {
drupal_load('module', 'filter');
drupal_load('module', 'user');
- // Load the cache infrastructure with the Fake Cache. Switch to the database cache
- // later if possible.
+ // Load the cache infrastructure using a "fake" cache implementation that
+ // does not attempt to write to the database. We need this during the initial
+ // part of the installer because the database is not available yet. We
+ // continue to use it even when the database does become available, in order
+ // to preserve consistency between interactive and command-line installations
+ // (the latter complete in one page request and therefore are forced to
+ // continue using the cache implementation they started with) and also
+ // because any data put in the cache during the installer is inherently
+ // suspect, due to the fact that Drupal is not fully set up yet.
require_once DRUPAL_ROOT . '/includes/cache.inc';
require_once DRUPAL_ROOT . '/includes/cache-install.inc';
$conf['cache_inc'] = 'includes/cache.inc';
$conf['cache_default_class'] = 'DrupalFakeCache';
-
+
// Prepare for themed output, if necessary. We need to run this at the
// beginning of the page request to avoid a different theme accidentally
// getting set.