PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.19.4
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.19.4
1.19.8 1.19.7 1.19.6 1.19.5 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.15.1 1.15.2 1.15.3 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.16.6 1.16.7 1.16.8 1.17.0 1.17.6 1.17.7 1.17.8 1.17.9 1.18.0 1.18.1 1.18.2 1.18.3 1.18.4 1.18.5 1.18.6 1.18.7 1.18.8 1.18.9 1.19.0 1.19.1 1.19.2 1.19.3 1.19.4 1.3.19 1.3.20 1.4.0 1.4.1 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.13 1.5.14 1.5.15 1.5.16 1.5.17 1.5.18 1.5.19 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.8.1 1.8.3 1.9.0 1.9.1 1.9.2
nitropack / view / javascript / elementor_cache_integration.js
nitropack / view / javascript Last commit date
admin_bar_menu.js 4 months ago elementor_cache_integration.js 5 months ago gravity_forms.js 2 months ago math_captcha.js 1 year ago nitropackUI.js 2 months ago np_notices.js 3 months ago np_safemode.js 1 year ago np_select2.js 2 months ago np_select2.min.js 2 months ago np_settings.js 2 months ago popper.min.js 1 year ago post_clear_cache.js 4 months ago preview_site.js 3 months ago system_report.js 4 months ago widgets_ajax.js 2 months ago
elementor_cache_integration.js
42 lines
1 /**
2 * NitroPack Integration for Elementor Tools Clear Cache
3 *
4 * Attaches to Elementor's "Clear Files & Data" button on the Tools page
5 * and triggers NitroPack cache clearing silently in the background.
6 */
7 jQuery(document).ready(function($) {
8 // Find Elementor's Clear Cache button
9 const $clearCacheButton = $('#elementor_clear_cache');
10
11 // Exit if button not found (not on Elementor Tools page)
12 if (!$clearCacheButton.length) {
13 return;
14 }
15
16 // Attach click handler
17 $clearCacheButton.on('click', function() {
18 // Trigger NitroPack cache clearing via AJAX
19 $.ajax({
20 url: nitropack_elementor.ajax_url,
21 type: 'POST',
22 data: {
23 action: 'nitropack_elementor_clear_cache',
24 nonce: nitropack_elementor.nonce
25 },
26 dataType: 'json',
27 success: function(response) {
28 // Silent success - only log to console
29 if (response.success) {
30 console.log('[NitroPack] Cache cleared successfully from Elementor Tools');
31 } else {
32 console.error('[NitroPack] Cache clearing failed:', response.data.message);
33 }
34 },
35 error: function(xhr, status, error) {
36 // Silent error - only log to console
37 console.error('[NitroPack] AJAX error clearing cache:', error);
38 }
39 });
40 });
41 });
42