Last active
November 9, 2015 13:53
-
-
Save JulioPotier/96340d7753de1dbb1b38 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Plugin Name: Disable Embeds Cache | |
* Description: Don't like the 1 day embed cache? | |
* Version: 1.0 | |
* Author: Julio Potier | |
* Author URI: https://wp-rocket.me | |
* License: GPLv2+ | |
* | |
*/ | |
add_filter( 'oembed_ttl', 'one_hundred_years_embed_cache_ttl' ); | |
function one_hundred_years_embed_cache_ttl() { | |
return 100 * YEAR_IN_SECONDS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment