| 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/wp-super-cache/inc/ |
Upload File : |
/* global wpsc_ajax */
( function ( $ ) {
$( document ).ready( function () {
$( '#wp-admin-bar-delete-cache' ).on( 'click', function () {
$( '#wp-admin-bar-delete-cache' ).fadeOut( 'slow' );
$.ajax( {
type: 'post',
dataType: 'json',
url: wpsc_ajax.ajax_url,
data: {
// wp ajax action
action: 'ajax-delete-cache',
path: wpsc_ajax.path,
admin: wpsc_ajax.admin,
// send the nonce along with the request
nonce: wpsc_ajax.nonce,
},
success: function () {
if ( wpsc_ajax.admin === '1' ) {
// eslint-disable-next-line no-console
console.log( 'Deleted entire cache' );
} else {
// eslint-disable-next-line no-console
console.log( 'Deleted cache for this page and reloading' );
}
window.location.reload();
},
complete: function () {
$( '#wp-admin-bar-delete-cache' ).fadeIn( 'slow' );
},
} );
return false;
} );
} );
} )( jQuery );