: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* cacheMode should be 1 or 0
function ninja_forms_update_cache_mode( cacheMode ) {
'action': 'nf_update_cache_mode',
'security': nfAdmin.ajaxNonce,
// 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);