? .DS_Store
? modules/.DS_Store
? sites/.DS_Store
? sites/default/files
? sites/default/private
? sites/default/settings.php
? themes/.DS_Store
Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.313
diff -u -p -r1.313 bootstrap.inc
--- includes/bootstrap.inc	22 Oct 2009 01:15:15 -0000	1.313
+++ includes/bootstrap.inc	24 Oct 2009 03:40:14 -0000
@@ -671,9 +671,9 @@ function drupal_get_filename($type, $nam
  * with variable_set() as well as those explicitly specified in the configuration
  * file.
  */
-function variable_initialize($conf = array()) {
+function variable_initialize($conf = array(), $nocache = false) {
   // NOTE: caching the variables improves performance by 20% when serving cached pages.
-  if ($cached = cache_get('variables', 'cache')) {
+  if (!$nocache && $cached = cache_get('variables', 'cache')) {
     $variables = $cached->data;
   }
   else {
@@ -1510,7 +1510,13 @@ function _drupal_bootstrap($phase) {
 
     case DRUPAL_BOOTSTRAP_VARIABLES:
       // Load variables from the database, but do not overwrite variables set in settings.php.
-      $conf = variable_initialize(isset($conf) ? $conf : array());
+      // If $conf == empty array it means this is the very first page view after install, 
+      // so dont let variable_initialize get data from cache
+      if($conf == array()){
+        $conf = variable_initialize(array(),true);
+      }else{
+        $conf = variable_initialize(isset($conf) ? $conf : array()); 
+      }
       // Load bootstrap modules.
       require_once DRUPAL_ROOT . '/includes/module.inc';
       module_load_all(TRUE);
