Jump to content

"I agree to the terms" slow loading of payments


Recommended Posts

Hi guys, I need some help here. On the checkout page (1 page checkout) there is a checkbox for accepting the terms and conditions. When a user ticks the checkbox, the proper payment methods appear. However, this happens very, very slowly. Sometimes people may be confused that something doesn't work with the website. I see that clicking on the checkbox calls the methods via jQuery but I can't find what may be problem for this slow load. Look at the image attached. 

My Prestashop caching settings are (see again the attachements).

My server resources:

CPU:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2500.092
cache size      : 15360 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 1
apicid          : 38
initial apicid  : 38
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm ida arat epb xsaveopt pln pts dtherm
bogomips        : 5000.18
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2500.092
cache size      : 15360 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 1
apicid          : 38
initial apicid  : 38
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm ida arat epb xsaveopt pln pts dtherm
bogomips        : 5000.18
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2500.092
cache size      : 15360 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 1
apicid          : 38
initial apicid  : 38
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm ida arat epb xsaveopt pln pts dtherm
bogomips        : 5000.18
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2500.092
cache size      : 15360 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 1
apicid          : 38
initial apicid  : 38
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm ida arat epb xsaveopt pln pts dtherm
bogomips        : 5000.18
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

 

MEMORY:

MemTotal:        1011288 kB
MemFree:           22184 kB
Buffers:           90692 kB
Cached:           500600 kB
SwapCached:            0 kB
Active:           446968 kB
Inactive:         418196 kB
Active(anon):     183768 kB
Inactive(anon):   206148 kB
Active(file):     263200 kB
Inactive(file):   212048 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2097148 kB
SwapFree:        2097104 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        273912 kB
Mapped:            85500 kB
Shmem:            116044 kB
Slab:              91608 kB
SReclaimable:      77836 kB
SUnreclaim:        13772 kB
KernelStack:        1232 kB
PageTables:         7132 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2602792 kB
Committed_AS:     860476 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        4888 kB
VmallocChunk:   34359728043 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:     1056768 kB
DirectMap2M:           0 kB

 

The php configuration information is: https://sportsnutrition.bg/info.php (if this may have some kind of relevance to the problem).

 

So, from what I see is that I get really slow time loading the payment methods. IT's like 6 seconds and that's a lot. I must find a way to get this below 2 seconds. Does somebody had a similar problem and who did you solve it? Actually, any ideas will be much appreciated. 

 

jq1.png

jq2.png

cache1.png

cache2.png

cache3.png

Edited by mpatzekov (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...