Jump to content

PERFORMANCE HOT FIX PLEASE APPLY [solved] 1.6.0.9 class_index.php has disappeared


Recommended Posts

Hello,

 

Since a couple of days, after the update to PS 1.6.0.9, the file /cache/class_index.php is not created anymore.

Actually, in the /cache folder, there is only one folder : ./smarty

 

Everything works, but I guess this is bad for performances.

 

Is there something to enable to have it back?

 

Thank you.

Edited by El Patron (see edit history)
  • Like 2
Link to comment
Share on other sites

In my case it was a bug in PrestaShopAutoLoad.class

I replaced the one in 1.6.0.9 with the latest from github and class_index.php was recreated again..

 

https://github.com/PrestaShop/PrestaShop/blob/8288a6fffa0eb7a42b280298f798ff9292dd7be3/classes/PrestaShopAutoload.php

 

I applied this fix and it is working fine now on 1.6.0.9.  Thanks for sharing.

  • Like 1
Link to comment
Share on other sites

In my case it was a bug in PrestaShopAutoLoad.class

I replaced the one in 1.6.0.9 with the latest from github and class_index.php was recreated again..

 

https://github.com/PrestaShop/PrestaShop/blob/8288a6fffa0eb7a42b280298f798ff9292dd7be3/classes/PrestaShopAutoload.php

 

Thank you !

 

The function

private function normalizeDirectory($directory)

has been added between the two versions.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

my site is on 1.6.0.9 with default standard theme, but I find it extemely slow. I tried to change to another provider,

 

but there it was even more slow (CPANEL) and I had the problem on a shared server with low memory settings.

 

I would be gratefull for advice how to get my shop running at least a bit faster. secondhand-obchod.sk

 

thx

Link to comment
Share on other sites

Hi,

 

my site is on 1.6.0.9 with default standard theme, but I find it extemely slow. I tried to change to another provider,

 

but there it was even more slow (CPANEL) and I had the problem on a shared server with low memory settings.

 

I would be gratefull for advice how to get my shop running at least a bit faster. secondhand-obchod.sk

 

thx

 

best to open new topic for best community review

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...

I was getting link rewrite issue in 1.6.0.8 so I have replaced the code fix from github for 1.6.0.9 now I also have same issue product loading very slow. Save and save and stay keep loading.Product page has became slow.

 

This is mentioned as solved is this the solution.

Pls any one help

 

please open new post...this is class cache issue, and would have little to no affect...i.e. your issue does not seem related.

Link to comment
Share on other sites

  • 3 weeks later...

Hello,
 
I have an modules which hide product base on Geoip location. I apply this patch and i disable my modules. Could developer help me to tell me which code need to change? I compare and found:
 
My original file:
 
Line 150: $filename = _PS_ROOT_DIR_.PrestaShopAutoload::INDEX_FILE;

Line 174L $root_dir = $host_mode ? _PS_ROOT_DIR_ : $this->root_dir;
 
and don't have:
 
 

    private function normalizeDirectory($directory)
    {
        $last = $directory[strlen($directory) - 1];

        if (in_array($last, array('/', '\\')))
        {
            $directory[strlen($directory) - 1] = DIRECTORY_SEPARATOR;
            return $directory;
        }

        $directory .= DIRECTORY_SEPARATOR;
        return $directory;
    }
}

 
Link to comment
Share on other sites

  • 1 month later...

I'm not overly techy and don't understand Github. 

 

could some kind soul explain how to apply this fix in detail, I have a 1.6.0.9 install running painfully slow on the back and front end.

 

TIA,

 

Chris

Hi Chris.

 

1. Download the ZIP file I'm attaching in this post

2. Extract it to your PC. You should get a file named "PrestaShopAutoload.php"

3. Connect to your 1.6.0.9 installation/hosting space with an FTP/SFTP/SCP client like WinSCP, FileZilla, or whatever else suits you

4. Navigate to the remote directory /YOUR-PRESTASHOP-ROOT-FOLDER/classes

5. Inside this directory, you should find a file named "class_index.php". Delete it

6. In the same directory, you should also find a file named "PrestaShopAutoload.php". Replace this with the file you got in step no.2

7. Close your FTP/SFTP/SCP client

8. You 're good to go

 

 

PrestaShopAutoload.zip

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

  • 2 weeks later...
  • 2 weeks later...
×
×
  • Create New...