HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcdev/wp-content/plugins/ninja-forms/assets/js/lib/feature-scripts.js
/**
 * cacheMode should be 1 or 0
 * 
 * @param {int} cacheMode 
 */
function ninja_forms_update_cache_mode( cacheMode ) {
    var data = {
        'action': 'nf_update_cache_mode',
        'security': nfAdmin.ajaxNonce,
        'cache_mode': cacheMode
    };
    
    // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
    jQuery.post(ajaxurl, data, function(response) {
        var data = JSON.parse(response);
        console.log(data);
    });
}