Skip to content

Instantly share code, notes, and snippets.

@tacoverdo
Last active October 3, 2020 21:34
Show Gist options
  • Save tacoverdo/ed3292feda93c22aedce to your computer and use it in GitHub Desktop.
Save tacoverdo/ed3292feda93c22aedce to your computer and use it in GitHub Desktop.
Disable WordPress SEO transient caching
<?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