Created
February 5, 2018 18:06
-
-
Save colepacak/64871607b503c8cc64e82e2a1eb83af3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/XmlSitemapWriter.php b/src/XmlSitemapWriter.php | |
index 6497da2..0839817 100644 | |
--- a/src/XmlSitemapWriter.php | |
+++ b/src/XmlSitemapWriter.php | |
@@ -156,6 +156,7 @@ class XmlSitemapWriter extends \XMLWriter { | |
* @codingStandardsIgnoreStart | |
*/ | |
public function generateXML() { | |
+ \Drupal::entityTypeManager()->getStorage('xmlsitemap')->resetCache(); | |
// @codingStandardsIgnoreEnd | |
return \Drupal::service('xmlsitemap_generator')->generateChunk($this->sitemap, $this, $this->sitemap_page); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment