TTFB is very slow even with default config




Wordpress LScache Plugin: TTFB is very slow even with default config

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I am using lite speed server with ls cache enable. When the cache is hit ttfb is good. But on the first try it is very very bad as compare to no cache plugin: without lscache plugin: 800 ms with ls cache plugin default setting: 4.2 seconds(almost tried 5-6 times) How to resolve this?? i have not even started the optimization process still it shows very bad result consistently?? Running vultr high freq server. Hi, you can enable debug log , and see what/why it was stalling and also please provide report number , you can get it in toolbox ? > report -> click send to LiteSpeed Best regards, Report number: RDFHZZHR These are the logs for two configuraion : 1) With default lscache( 4 + second ttfb) 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] ------GET HTTP/1.1 (HTTPS) / 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] Query String: product=woman-blue-pullover 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] HTTP_REFERER: https://asharficlothing.in/ 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] User Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] Accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] Accept Encoding: gzip, deflate, br 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] X-LSCACHE: true 03/09/21 11:39:11.399 [103.109.74.2:62914 1 nz5] LSCACHE_VARY_COOKIE: wp-postpass_c2698c599e2665759dd4a686aae41e9f 03/09/21 11:39:12.680 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:12.681 [103.109.74.2:62914 1 nz5] [Media] init 03/09/21 11:39:12.682 [103.109.74.2:62914 1 nz5] [LQIP] init 03/09/21 11:39:12.684 [103.109.74.2:62914 1 nz5] [CDN] init 03/09/21 11:39:12.684 [103.109.74.2:62914 1 nz5] Task init 03/09/21 11:39:12.684 [103.109.74.2:62914 1 nz5] [Router] LSCWP_CTRL bypassed empty 03/09/21 11:39:12.685 [103.109.74.2:62914 1 nz5] [GUI] init 03/09/21 11:39:12.739 [103.109.74.2:62914 1 nz5] [Ctrl] X Cache_control init on 03/09/21 11:39:15.935 [103.109.74.2:62914 1 nz5] [Core] Footer hook called 03/09/21 11:39:15.939 [103.109.74.2:62914 1 nz5] [Core] Footer check passed 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Vary] role id: failed, guest 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:15.940 [103.109.74.2:62914 1 nz5] [Vary] no custimzed vary 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] X-LiteSpeed-Cache-Control: public,max-age=604800 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] X-LiteSpeed-Tag: 75f_HTTP.200,75f_product,75f_URL.6666cd76f96956469e7be39d750cc7d9,75f_Po.160,75f_ 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] [Core] Footer check passed 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] [Media] finalize 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] GUI bypassed by no counter 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] [Router] get_role: 03/09/21 11:39:15.941 [103.109.74.2:62914 1 nz5] [Optm] start 03/09/21 11:39:15.942 [103.109.74.2:62914 1 nz5] CDN bypass 03/09/21 11:39:15.942 [103.109.74.2:62914 1 nz5] End responseExpand 2) With disable all feature (it still add 400 ms to time) only if the plugin is activated 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] ------GET HTTP/1.1 (HTTPS) / 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] Query String: product=red-casual-dress 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] HTTP_REFERER: https://asharficlothing.in/?product=woman-blue-pullover 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] User Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] Accept: text/html,application/xhtml+xml,application/xml q=0.9,image/avif,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 q=0.9 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] Accept Encoding: gzip, deflate, br 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] X-LSCACHE: true 03/09/21 11:47:00.688 [103.109.74.2:61927 1 Nk0] LSCACHE_VARY_COOKIE: wp-postpass_c2698c599e2665759dd4a686aae41e9f 03/09/21 11:47:01.372 [103.109.74.2:61927 1 Nk0] [Core] Bypassed due to debug disable all setting OKay so i tried something else. I copied the the .htaccess file that was created after the plugin is activated(nthing change just the default setting). Then i deactivated the plugin and replace the .htaccess manually(that i copied from before) and then manually turned on the lscache in the httpd_config.conf (setting enablecache to true) and volla now both the cache is working and ttfb is also like before. I believe there is definitely something wrong with the plugin it adds around 2-3 seconds on the first try . Please see to it i believe there might be some bug in the plugin. Also are there any command that i can use to purge without using the plugin?? Does the command like wp litespeed work without any plugin?? Hi, 03/09/21 11:39:12.739 [103.109.74.2:62914 1 nz5] [Ctrl] X Cache_control init on 03/09/21 11:39:15.935 [103.109.74.2:62914 1 nz5] [Core] Footer hook called there is something happened at this point , 3 seconds gap could you please try disable all other plugins and only keep LSCWP on , see how it goes ? Best regards, Hi, No plugin is installed and only theme and elementor is active. Definelty plugin issue. No problem when cache set manually. Please do look into it. It is quite a problem if there is a bug. did you enable object cache ? No, object cache is disabled in the default config. Redis is runnig thoough in the background but since it is not integrated with wp so i dont think that is the problem. I can try and disable it completely?? yeah , please try that way , but I think not related please create a ticket by send mail to support at litespeedtech.com , we will investigate it further Sure i will create a ticket thanks.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference