<?php
add_filter( 'facetwp_cache_lifetime', function( $seconds, $params ) {
$uri = $params['uri'];
$excluded = [ 'page/not/to/cache', 'another/page' ];
if ( in_array( $uri, $excluded ) ) {
$seconds = 0;
}
return $seconds;
}, 10, 2 );