Issue #2575495 by webflo, Mile23, hussainweb: Invalidate APCu Class Loader automatically if necessary

8.0.x
Nathaniel Catchpole 2015-09-30 17:45:54 +01:00
parent 5976b79262
commit bf74e9d38b
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ final class Settings {
*/
public static function getApcuPrefix($identifier, $root, $site_path = '') {
if (static::get('apcu_ensure_unique_prefix', TRUE)) {
return 'drupal.' . $identifier . '.' . hash_hmac('sha256', $identifier, static::get('hash_salt') . '.' . $root . '/' . $site_path);
return 'drupal.' . $identifier . '.' . \Drupal::VERSION . '.' . static::get('deployment_identifier') . '.' . hash_hmac('sha256', $identifier, static::get('hash_salt') . '.' . $root . '/' . $site_path);
}
return 'drupal.' . $identifier . '.' . Crypt::hashBase64($root . '/' . $site_path);
return 'drupal.' . $identifier . '.' . \Drupal::VERSION . '.' . static::get('deployment_identifier') . '.' . Crypt::hashBase64($root . '/' . $site_path);
}
}