Why my site is slow?


#1

hi
i love slim and work alot with that app

i build a big site
with slim twig and eloquent

but my page load very very slow
look at this page:
http://www.shift.co.il/product/samsung-galaxy-s8-64gb-sm-g950f

32 Secound to load!!!

and i use twig cache

i dont whant to build all again in larvael
i love slim

plz
somone can help me with that

thanks :slight_smile:


#2

It is not Slim’s fault.
You’ll have to debug your code to find the bottleneck.
Only this route take that long?
Have you checked your database log? Make sure your are not using all the magic from eloquent(or any ORM), this could be disastrous.


#3

I dont know and i get all the time
to many connaction
in my DB

but why???

i work with amazone and RDS dabatabe


#4

i think that i fix that
i need to check when alot of visitios come in

if i fix that the problem be in my DB
i just do that line:
mysqladmin -h -P 3306 -u -p flush-hosts


#5

It took me under 2 seconds to load your webpage.


#6

I don’t know if you changes some stuff, but in the Netherlands it loads quite fast. ( < 2 secs)


#7

yes i work hard for that
thanks :slight_smile: