Jump to content

slow site in paypal


xpoveda

Recommended Posts

Hello, I installed the latest version of the template prestashop default one module "paypal free".

 

I correctly install and configure a new entreprise account must be verified yet (I've released today).

 

At the moment I activated the web is much slower (60 seconds) when not normally take anything (1 second).

 

If you disable the weather returns to normal.

 

Any idea?

 

Comment also in the backoffice I have:

 

NOK-friendly URLs

NOK browser-Cache and compression

WARNING - Optimizing Smarty

WARNING - concatenation, compression and cache

 

Thank you!

 

Xavier.

Link to comment
Share on other sites

  • 6 months later...

Hello,

same here: the homepage took 30 seconds longer to load. The problem was the updatePictures function, which is located in modules/paypal/paypal_logos.php.

 

Apparently, it checks whether the local logo image files are outdated or not. If those files were modified more than one week ago, it attempts to download a more recent version from the web. The thing is, if you don't have write permissions, it will try to download them anyway, at each request.

 

So, the solution is to give write permissions to modules/paypal/img/logos or if you, like me, don't care to have your logos updated automatically, just exclude the updatePictures function.

 

I just commented this line out. It's in the getLocalLogos function, found in modules/paypal/paypal_logos.php

//$this->updatePictures($logo[0], $destination);

I think this behavior should be configurable and I certainly don't want my logo files to be checked at every-single-request.


copied

Edited by HMagdy (see edit history)
  • Like 3
Link to comment
Share on other sites

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...