📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 03:47:10
📂
/ (Root)
/
home
/
xeqi7597
/
public_html
/
wp-content
/
plugins
/
wp-super-cache
/
inc
📍 /home/xeqi7597/public_html/wp-content/plugins/wp-super-cache/inc
🔄 Refresh
✏️
Editing: delete-cache-button.js
Writable
/* 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 );
💾 Save Changes
❌ Cancel