Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

A rebuild.php script has been added to clear PHP storage before cache backend storage. For example, if code changes mean the currently dumped PHP container is no longer valid.

Usage

Method I

Enable the 'rebuild_access' setting ($settings['rebuild_access'] = TRUE) in settings.php and visit BASE_URL/rebuild.php.

Method II

  1. Run core/scripts/rebuild_token_calculator.sh to generate a query string to gain access to rebuild.php:
    core/scripts/rebuild_token_calculator.sh
    

    Example output from the script:

    timestamp=1386684652&token=5q_26cw0qtP_mRQjm1MQCh_xme-lYtQ1dEEXBzze-o8
    
  2. Visit rebuild.php with the generated query string appended:
    BASE_URL/rebuild.php?timestamp=1386684652&token=5q_26cw0qtP_mRQjm1MQCh_xme-lYtQ1dEEXBzze-o8
    

A new drupal_rebuild() function has been added to core/includes/utility.inc that can be used to invoke a rebuild.

Impacts: 
Site builders, administrators, editors
Module developers
Themers