Commit 4be577a0 authored by rbayliss's avatar rbayliss Committed by RenatoG

Issue #2924422 by rbayliss, dpi, jibran, RenatoG: xmlsitemap_get_link_info()...

Issue #2924422 by rbayliss, dpi, jibran, RenatoG: xmlsitemap_get_link_info() causes entity_type cache tag clear on every node edit page view
parent 79cfd857
......@@ -639,7 +639,6 @@ function xmlsitemap_get_link_info($type = NULL, $reset = FALSE) {
$link_info = $cache->data;
}
else {
\Drupal::entityTypeManager()->clearCachedDefinitions();
$link_info = [];
$entity_types = \Drupal::entityTypeManager()->getDefinitions();
foreach ($entity_types as $key => $entity_type) {
......@@ -1147,7 +1146,7 @@ function xmlsitemap_form_submit_flag_regenerate(array $form, FormStateInterface
* @todo Add changefreq overridability.
*/
function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
$info = xmlsitemap_get_link_info($entity, TRUE);
$info = xmlsitemap_get_link_info($entity);
if (!$link = \Drupal::service('xmlsitemap.link_storage')->load($entity, $id)) {
$link = [];
......
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