LSCACHE_ESI_SILENCE doesn’t work
-
When creating an ESI block, every instance is wrapped in:
<!–lscwp Custom ESI block
–>
<!– lscwp Custom ESI block esi end –>I am trying to return JSON so of course that breaks.
I have LSCACHE_ESI_SILENCE in my wp-config
I also tried:
add_filter( ‘litespeed_comment’, ‘__return_false’ );
if ( ! defined( ‘LSCACHE_ESI_SILENCE’ ) ) {
define( ‘LSCACHE_ESI_SILENCE’, true );
}but the comments remain.
I have also tried regex and even str_replace to try and remove the comments but it seems that string is no longer editable? I don’t know how that is happening.
Any help here would be really appreciated, thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.