Plugin Support
qtwrk
(@qtwrk)
please provide the report number
you can get it in toolbox -> report -> click “send to LiteSpeee”
Plugin Support
qtwrk
(@qtwrk)
I see, because the display function is not using admin-ajax.php , but only “add like” is using admin-ajax.php
the point to use cache plugin is to avoid execute PHP , so this is expected behavior
you need to use post count plugin with ajax displaying as well, to make it compatible with cache plugin.
Oh I see. Thanks! Although I understand exactly what you mean, I do not know how to fix it myself.
Is there a possibility to add an exception somewhere in LSC settings to not cache the plugin or its data?
I know that this will not be an ideal solution but it will at least let me get to a temp. working solution.
Plugin Support
qtwrk
(@qtwrk)
update_post_meta( $post_id, 'like_count', $like_count );
change this line to
update_post_meta( $post_id, 'like_count', $like_count );
if (defined('LSCWP_V')){
do_action( 'litespeed_purge_post', $post_id );
}
this should purge the page when someone clicked like button , this should make it display the latest result
Thanks a ton for the workaround!