Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

LiteSpeed `litespeed_buffer_after` hook and Cheched content

$
0
0

Replies: 0

Hi,

I have a couple of doubts about the litespeed_buffer_after hook in LiteSpeed.

What is the difference between litespeed_buffer_before and litespeed_buffer_after? They both seem to be manipulating the $content of the webpage.

Also, do these hooks modify the Cached content or Cache the modified content. For example,

// The original content is 'All the page content'.

function remove_broken_style( $content ) {
    return str_replace( 'page', 'webpage', $content );
}
add_filter( 'litespeed_buffer_after', 'remove_broken_style', 0);

// The original content becomes 'All the webpage content' with the hook.

In the above example, what does LiteSpeed cache? Will the content cached by LiteSpeed plugin on my website be ‘All the page content’ or ‘All the webpage content’? Which version will be saved on all the QUIC.cloud CDN servers?

Thanks.


Viewing all articles
Browse latest Browse all 59525

Trending Articles