| Server IP : 216.238.66.20 / Your IP : 216.73.216.51 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/plugins/youtube-channel/templates/ |
Upload File : |
<h3>Clear YTC Cache</h3>
<p>To avoid page load slowdown, we provide internal YouTube Channel caching functionality. You can enable caching per widget or shortcode, and set how long cached feed for particular widget or shortcode will live.</p>
<p>If you wish to force clear cache before it expires (for example, you have set cache timeout to 2 days, but wish to force loading of fresh channel or playlist feed), you can force Clear All YTC Cache to remove transients from database on demand.</p>
<button id="ytc_clear_all_cache" class="button">Clear All YTC Cache</button>
<?php $nonce = wp_create_nonce( 'action-ytc_clear_all_cache' ); ?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#ytc_clear_all_cache').on('click', function(ev){
ev.preventDefault();
$.post(
ajaxurl,
{
'action': 'ytc_clear_all_cache',
'nonce': '<?php echo esc_attr( $nonce ); ?>'
},
function(response){
alert(response);
}
);
});
});
</script>