Issue #2575495 by webflo, Mile23, hussainweb: Invalidate APCu Class Loader automatically if necessary
parent
5976b79262
commit
bf74e9d38b
|
@ -170,9 +170,9 @@ final class Settings {
|
||||||
*/
|
*/
|
||||||
public static function getApcuPrefix($identifier, $root, $site_path = '') {
|
public static function getApcuPrefix($identifier, $root, $site_path = '') {
|
||||||
if (static::get('apcu_ensure_unique_prefix', TRUE)) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue