Site speed slow on first time load and speeds up on next load

#1
Hi
I am using digital ocean openlitespeed-s-4vcpu-8gb-lon1-01
Openlitespeed
4CPU
8GB RAM
16GB SSD
I have loaded my site in wordpress all looks good and its working fine .
If i check the site for the first time it loads around 2 - 3 second , But if i load the site second time it goies to 1 sec .
It only happen for the first time load /


I have added LS Cache
Memcached
Not sure Opcode is added (Dont know how to add it )
using php 7
Gziped


Why this happen .
 

Unique_Eric

Administrator
Staff member
#2
Hi @Mithu,

Glade to know it works to you.
The first time page load slow is due to the page cache generate which is normal. If you enable the browser developer tool, you should see a `X-LiteSpeed-Cache: miss` at first time and second time shows a `X-LiteSpeed-Cache: hit ` only. So after user visit the cached page should only spend 1 sec to load.

About OPCache which should already enabled by default and no need to worry.

We are still trying to improve the settings and document since DigitalOcean's marketplace still in beta, do you have any suggestion to the image/document?

Best
 

Unique_Eric

Administrator
Staff member
#5
@Mithu,
So far I can't figure out an easy method to setup SSL and Virtual host. Maybe, next time you can give marketplace->CyberPanel a try which should able to setup all stuffs from control panel with simple steps.
 
Top