Last active
October 3, 2020 21:34
-
-
Save tacoverdo/ed3292feda93c22aedce to your computer and use it in GitHub Desktop.
Disable WordPress SEO transient caching
This file contains 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
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/** | |
* Disables the XML Sitemap transient caching in WordPress SEO and WordPress SEO Premium. | |
* WARNING: This may lead to a heavier load on your server and your sitemaps being loaded less fast. | |
*/ | |
add_filter( 'wpseo_enable_xml_sitemap_transient_caching', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment