Jump to content

Change structure of /img folder


vladismenko

Recommended Posts

Hello,
in PS 1.7 is structure of /img folder like:

 

Image Id = xyz
Image FileName = xyz.jpg
/img/p/x/y/z/xyz.jpg


- when there is lot of images, server have lot of INODES.

I need to minimize structure.


Is there possibility to do not have so many SUB-FILDERS in /img folder?

 

Link to comment
Share on other sites

Hi,

The choice of this directory structure for images comes from a time when all images were in a single directory and that caused other problems like some servers were not able to load the list of all files.

But if you want to change the image management structure, there is a lot of rewriting of PrestaShop to do... change hosting instead, it will be more productive in my opinion.

Link to comment
Share on other sites

il y a 35 minutes, vladismenko a dit :

I did not find good hosting that have unlimited inodes and size

The only crazy host on the subject is ionos which blocks definitively when you have too many files, on the other hand I have never had any feedback on other hosts where the sites are blocked by their number of files, if you have such a large number of files I think you should switch to a pro offer on a dedicated server

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