/[drupal]/drupal/includes/module.inc
ViewVC logotype

Diff of /drupal/includes/module.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.172 by dries, Wed Nov 11 17:04:47 2009 UTC revision 1.173 by dries, Wed Nov 18 19:09:52 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: module.inc,v 1.171 2009/11/10 22:06:09 dries Exp $  // $Id: module.inc,v 1.172 2009/11/11 17:04:47 dries Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 113  function system_list($type) { Line 113  function system_list($type) {
113      }      }
114      else {      else {
115        $bootstrap_list = db_query("SELECT name, filename FROM {system} WHERE status = 1 AND bootstrap = 1 AND type = 'module' ORDER BY weight ASC, name ASC")->fetchAllAssoc('name');        $bootstrap_list = db_query("SELECT name, filename FROM {system} WHERE status = 1 AND bootstrap = 1 AND type = 'module' ORDER BY weight ASC, name ASC")->fetchAllAssoc('name');
116        cache_set('bootstrap_modules', $bootstrap_list, 'cache');        cache_set('bootstrap_modules', $bootstrap_list, 'cache_bootstrap');
117      }      }
118      foreach ($bootstrap_list as $module) {      foreach ($bootstrap_list as $module) {
119        // Prime the drupal_get_filename() static cache to avoid subsequent        // Prime the drupal_get_filename() static cache to avoid subsequent
# Line 555  function module_implements_write_cache() Line 555  function module_implements_write_cache()
555    // optimized as tightly, and not doing so keeps the cache entry smaller.    // optimized as tightly, and not doing so keeps the cache entry smaller.
556    if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) {    if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) {
557      unset($implementations['#write_cache']);      unset($implementations['#write_cache']);
558      cache_set('module_implements', $implementations);      cache_set('module_implements', $implementations, 'cache_bootstrap');
559    }    }
560  }  }
561    

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173

  ViewVC Help
Powered by ViewVC 1.1.3