Plugin Support
qtwrk
(@qtwrk)
Hi,
1) you can use crawler
2) and 3) did you enable any CSS/JS related feature ? like combine , minify , defer …etc
4) yes , it’s normal , for the first access, it has to buffer the output for optimization process , like JS minify , CSS minify , lazy load , CDN rewrite , webp replacement …etc
can’t really fix it , it’s kind of core function of cache and optimization.
but some options could be expensive that costs a lot of time , like combine external JS file , fetching from remote could stall a lot , you can try disable them
Best regards,
@qtwrk Thanks.
There was a plugin I didn’t use. I enabled it and the font became normal. No problem now.
There is also the number of views. This is not working normally.
Also, the like button shows the number of likes. However, I ran into a few different problems in this regard.
For these 2 issues I have to block the cache. How can I do that?
-
This reply was modified 5 years, 6 months ago by
Mert VAROL.
-
This reply was modified 5 years, 6 months ago by
Mert VAROL.
JS:
JS Minify
JS Combine
JS Combine External and Inline
CSS:
CSS Minify
CSS Combine
Unique CSS File
Generate Critical CSS
Generate Critical CSS In Background
Inline CSS Async Lib
HTML:
HTML Minify
These are on. Others are off.
-
This reply was modified 5 years, 6 months ago by
Mert VAROL.
Plugin Support
qtwrk
(@qtwrk)
Hi,
There is also the number of views. This is not working normally.
Also, the like button shows the number of likes. However, I ran into a few different problems in this regard.
For these 2 issues I have to block the cache. How can I do that?
sadly , the main point for caching plugin is to avoid PHP session , as for real-time statistics , it will invoke PHP.
for view count , you need to find ones who uses ajax-call to fetch/update the count , as ajax call will not be cached , or use ESI function.
if your view counter or like button was added by shortcode or widget , you can set them as ESI block , with cache ttl = 0 , then it should make that block to be no-cache and give you real-time statistics.
Best regards,
@qtwrk thanks.
The number of likes and views are the codes of the theme. I tried a few things but couldn’t fix it. Unfortunately, the problem persists.
Actually I can access codes. Have you written any blocking code? I can insert the code. All I want is to block access.
I can find the SQL query. Once I find the SQL query, can I use it to block access?
Plugin Support
qtwrk
(@qtwrk)
Hi,
> I tried a few things but couldn’t fix it.
could you please explain what you’ve tried ?
what do you mean you can access codes ?
Best regards,
@qtwrk
Now I understand everything better.
I read this article and I guess that’s what I want. Is that so?
URL: https://docs.litespeedtech.com/lscache/lscwp/admin/#turning-wordpress-shortcodes-into-esi-blocks
I’ve tried [esi post-views ttl=”60″] and [esi post-views cache=”private” ttl=”60″].
It works.
However, the page cache is deleted. Only view cache is not cleared. Is this normal?
-
This reply was modified 5 years, 6 months ago by
Mert VAROL.
Plugin Support
qtwrk
(@qtwrk)
Hi,
I am not sure what do you mean “page cache is deleted , only view cache is not cleared” ?
Best regards
Plugin Support
qtwrk
(@qtwrk)
Hi,
I’m going to mark this topic “Resolved”, due to lack of activity.
If you still need help, please feel free to re-open it.
Best regards,