Skip to content
Snippets Groups Projects
Commit 4997bdb4 authored by catch's avatar catch
Browse files

Issue #3261264 by andypost: Remove deprecated code from...

Issue #3261264 by andypost: Remove deprecated code from \Drupal\Core\Cache\DatabaseCacheTagsChecksum
parent 27af96d7
No related branches found
No related tags found
No related merge requests found
......@@ -117,30 +117,6 @@ public function schemaDefinition() {
return $schema;
}
/**
* Act on an exception when cache might be stale.
*
* If the {cachetags} table does not yet exist, that's fine but if the table
* exists and yet the query failed, then the cache is stale and the
* exception needs to propagate.
*
* @param \Exception $e
* The exception.
*
* @throws \Exception
*
* @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3243014
*/
protected function catchException(\Exception $e) {
@trigger_error('\Drupal\Core\Cache\DatabaseCacheTagsChecksum::catchException is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3243014', E_USER_DEPRECATED);
if ($this->connection->schema()->tableExists('cachetags')) {
throw $e;
}
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment