diff --git a/profiles/standard/standard.install b/profiles/standard/standard.install index ae34eaf..c4331e1 100644 --- a/profiles/standard/standard.install +++ b/profiles/standard/standard.install @@ -410,6 +410,14 @@ function standard_install() { ->fields(array('uid' => 1, 'rid' => $admin_role->rid)) ->execute(); + // Enable the page cache. For backwards compatibility and to avoid breaking + // any assumptions of existing automated tests (many of which use the + // Standard install profile), this is not enabled if the profile is being + // installed as part of an automated test. + if (empty($GLOBALS['drupal_test_info'])) { + variable_set('cache', 1); + } + // Create a Home link in the main menu. $item = array( 'link_title' => st('Home'),