Commit bf74e9d3 authored by catch's avatar catch

Issue #2575495 by webflo, Mile23, hussainweb: Invalidate APCu Class Loader...

Issue #2575495 by webflo, Mile23, hussainweb: Invalidate APCu Class Loader automatically if necessary
parent 5976b792
......@@ -170,9 +170,9 @@ public static function getHashSalt() {
*/
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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment