|
@@ 90-102 (lines=13) @@
|
| 87 |
|
); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
private function recommendedDirectiveSetting($directive) { |
| 91 |
|
$setting = $this->getDirective($directive); |
| 92 |
|
|
| 93 |
|
switch ($directive) { |
| 94 |
|
case 'opcache.validate_timestamps': |
| 95 |
|
if ($setting == TRUE) { |
| 96 |
|
return t('OPcache is still checking the timestamps of files to see if they have been updated. For maximum performance, set <tt>opcache.validate_timestamps = 0</tt> in your PHP installation’s configuration file, and use the “Clear all caches” button on the <a href="!perf_path">Performance page</a> to clear the OPcache cache after updating files (or use Drush).', array('!perf_path' => url('admin/config/development/performance'))); |
| 97 |
|
} |
| 98 |
|
break; |
| 99 |
|
default: |
| 100 |
|
break; |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
private function requiredDirectiveSetting($directive) { |
| 105 |
|
$setting = $this->getDirective($directive); |
|
@@ 104-117 (lines=14) @@
|
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
private function requiredDirectiveSetting($directive) { |
| 105 |
|
$setting = $this->getDirective($directive); |
| 106 |
|
|
| 107 |
|
switch ($directive) { |
| 108 |
|
case 'opcache.save_comments': |
| 109 |
|
case 'opcache.load_comments': |
| 110 |
|
if ($setting == FALSE) { |
| 111 |
|
return t('Comment saving and/or loading is disabled. This functionality <em>must</em> be enabled, or Drupal will not function correctly. Ensure that you have <tt>opcache.save_comments = 1</tt> and <tt>opcache.load_comments = 1</tt> in this PHP installation’s configuration file.'); |
| 112 |
|
} |
| 113 |
|
break; |
| 114 |
|
default: |
| 115 |
|
break; |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|