<p>On my server my page loads in about 800-2.200ms. Locally it's loading in about 100ms.  The database loads super fast on server and locally. When I use profiling locally my content matrix template takes around 5ms to render but on the server it takes about 300ms and the footer also takes 300ms. I improved my speed locally by using eager loading but it doesn't seem to help on my sever.</p>
<p>I've tested creating a phpinfo file and seeing how fast it loads on the server and it's loading super fast so it's not any server settings.</p>
<p>Do you have any ideas? I do use imager in Craft for every image but why would it be slower on the server and not locally as well?</p>

CC BY-SA 4.0
2021-06-18T17:10:27.110Z
What sort of hosting do you have? Is devMode turned on the server too?
RitterKnight
CC BY-SA 4.0
2021-06-19T13:24:09.103Z
@RitterKnight I use basic Strato hosting. All the PHP ini settings are fine based on the craft report and devmode is off.
Kris
CC BY-SA 4.0
2021-06-20T06:58:52.643Z
Is it a shared hosting? I could imagine that this is the bottleneck. Using a VPS provisioned by Forge or something similar should result even in better performance than locally depending on your setup.
Johannes
CC BY-SA 4.0
2021-06-21T10:08:20.463Z
@Johannes yes it's shared hosting. I guess too bad then bc the client will definetly not switch. Thanks!
Kris
<performance><speed>
Templates render fast locally but slow on live server
# Templates render fast locally but slow on live server

(Asked by: username_0 on 2021-06-18)

On my server my page loads in about 800-2.200ms. Locally it's loading in about 100ms. The database loads super fast on server and locally. When I use profiling locally my content matrix template takes around 5ms to render but on the server it takes about 300ms and the footer also takes 300ms. I improved my speed locally by using eager loading but it doesn't seem to help on my sever.

I've tested creating a phpinfo file and seeing how fast it loads on the server and it's loading super fast so it's not any server settings.

Do you have any ideas? I do use imager in Craft for every image but why would it be slower on the server and not locally as well?

**Tags:** performance, speed

> **Comments:**
> **username_1**: What sort of hosting do you have? Is devMode turned on the server too?  
> **username_0**: @username_1 I use basic Strato hosting. All the PHP ini settings are fine based on the craft report and devmode is off.  
> **username_2**: Is it a shared hosting? I could imagine that this is the bottleneck. Using a VPS provisioned by Forge or something similar should result even in better performance than locally depending on your setup.  
> **username_0**: @username_2 yes it's shared hosting. I guess too bad then bc the client will definetly not switch. Thanks!  

---

## 0 answers

