Speed up back office (for PS 1.6)

Sometimes, Prestashop back office may take some time to load, especially the modules section.

It's caused by the shop connecting to external services (like Prestashop addons), to get data about module updates, new offers etc.

Stopping this communication may give your back office a significant boost.

To achieve it, follow these steps:

1. Uninstall the "Gamification" module (also called "Merchant expertise")

2. If you are using the "Cron Tasks Manager" module to run some tasks, move them to the level of the server and uninstall this module (if the configuration of the module is empty, just uninstall it)

If you can't log in to the back office to unistall these modules, log in to your FTP server and change folder names of the modules (for example add an "xxx" prefix).

3. Add a special override to the Tools class (or install our free gmspeedup module):

  • create Tools.php file in your override/classes folder
  • insert the following code in that file:
    <?php
    
    class Tools extends ToolsCore {
    
        //GreenMouse admin panel speedup
        public static function addonsRequest($request, $params = array())
        {
            return false;
        }
    }

    Note: if you already have Tools.php file in your overrides, you only need to add the following function there, just before the last curly brace:

        //GreenMouse admin panel speedup
        public static function addonsRequest($request, $params = array())
        {
            return false;
        }
    
  • delete cache/class_index.php file to force override regeneration

4. Go to config/xml folder and delete all xml files from it.

And that's it! Now go to your modules section and check out the loading speed there :)

Speed up back office (for PS 1.7)

Follow points 1 and 2 from the PS 1.6 version description above.

In Prestashop 1.7, due to changes in the architecture, it is not possible to make an override to the Tools class and apply this change.

To disconnect from addons you need to go do classes/Tools.php file, find this line:

protected static $is_addons_up = true;
and change it to:
protected static $is_addons_up = false;

And also, delete default_country_modules_list.xml fle from the config/xml folder.

This page is a part of our list of the most common Prestashop enhancements and fixes. To get the full list, subscribe to our newsletter.

Czym się zajmujemy?

Zajmujemy się tworzeniem modułów, szablonów, optymalizacją, a także kompletnymi wdrożeniami sklepów internetowych.

Sami prowadzimy własny sklep, dlatego możemy podpowiedzieć Ci co warto wdrożyć, aby uzyskać możliwie najlepsze rezultaty w handlu internetowym.



Programowanie

  • Tworzenie nowych modułów i szablonów
  • Integracje z hurtowniami
  • Dodatkowe funkcjonalności
  • Zmiany wyglądu
  • Naprawa błędów
Sklepy Internetowe GreenMouse

Opieka

  • Audyt sklepów
  • Poprawa szybkości
  • Optymalizacja kodu
  • Poprawa funkcjonalności
  • Opieka nad sklepem
TOP