Jump to content

Modules list very, very slow


Recommended Posts

I've hosted my Prestashop at Azure. It runs very quickly, except the Modules page (in Administration). It loads at least a minute, but now it takes about 5 minutes. I've upgraded the VM to a D1 (with SSD) but it's still very slow.

There must be a module causing this issue. How can I investigate this? Only solution is to turn on performance monitoring (which will then be visible for the public site as well, right?)?

 

When I log on the server via SSH and check TOP, the CPU is almost idle...

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

Because your shop is linked to addons.prestashop

 

This problem solve easily.

 

The first: open classes/admin/Tools.php

Search addonsRequest and then insert return false;

 

Such as public static function addonsRequest($request, $params = array())

{

return false;

if (!self::$is_addons_up) {

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...

 

 I solve this way: (in classes/Tools.php)

 

Change the URL to IP:

 

$protocols = array('https');
        //$end_point = 'api.addons.prestashop.com';
        $end_point = '91.240.109.18';

 

Sorry for digging this thread but THANKS! Solution from @sparsek just work! My loading time when i try open modules list was ~1min or better, i changed "end_point=" to IP (like he said up) and now i have ~2-3s loading time! Big thank you! Great solution  :wub:  :)  I'm really happy now - really frustrating when you wait 1 min to open module list  <_<

 

Maybe someone need this solution too so i telling it works (in my case)  :)

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

Sorry for digging this thread but THANKS! Solution from @sparsek just work! My loading time when i try open modules list was ~1min or better, i changed "end_point=" to IP (like he said up) and now i have ~2-3s loading time! Big thank you! Great solution  :wub:  :)  I'm really happy now - really frustrating when you wait 1 min to open module list  <_<

 

Maybe someone need this solution too so i telling it works (in my case)  :)

I'm sorry but this is not the solution... you gonna get an error.

 

Is better just don't load from site

 

Try "return false" after the fiction:

 

public static function addonsRequest($request, $params = array())

{

return false;

 

if (!self::$is_addons_up) {

Link to comment
Share on other sites

I'm sorry but this is not the solution... you gonna get an error.

 

Is better just don't load from site

 

Try "return false" after the fiction:

 

public static function addonsRequest($request, $params = array())

{

return false;

 

if (!self::$is_addons_up) {

 

I have something like this (i don't modify this, just copy from my presta): 

 public static function addonsRequest($request, $params = array())
    {
        if (!self::$is_addons_up) {
            return false;
        }

All is working now so i think i don't need to change anything.

 

EDIT Really @sparsek have right, few days later i have error so i change classes/tools.php to this and now work GREAT, you just add "return false;" - look at quote below.

 

  public static function addonsRequest($request, $params = array())
    {
	return false;
        if (!self::$is_addons_up) {
Edited by serfmen (see edit history)
  • Like 1
Link to comment
Share on other sites

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