PS: 1.6.0.14
I have few classes (7) under my overrides folder, some of which I have manually created to get the clean url's mod working but now the classes/cache_index.php is giving me lot of trouble. Whenever the cache is cleared, it regenerates the file with missing paths to the override classes and breaks the whole site. I then have to manually delete it and it re-generates a new one correctly with all the paths.The only way to get it working is to disable cache completely. Here's an example -
Bad:
Auto generated by PrestaShop right after clearing the cache:
'CategoryController' =>
array (
'path' => '',
'type' => 'class',
'override' => false,
),
Good:
Delete the auto-generated cache_index file manually and then PrestaShop re-generates this file which is good:
'CategoryController' =>
array (
'path' => 'override/controllers/front/CategoryController.php',
'type' => 'class',
'override' => false,
),
In the documentation HERE, it's mentioned -
Is there anyway that prestashop can take the override paths into consideration whenever it generates the cache_index file. I am even fine to hard-code the paths in PrestaShopAutoLoad.php if that fixes the issue.
Any hack or proper solution to fix this would be greatly appreciated so that we can enable caching back on our site and improve the user experience.
Thanks,
Mick