Jump to content

_MEDIA_SERVER_1_ and 2 and 3


mickaelmarin

Recommended Posts

Hello,

 

Currently I learn how prestashop work.

 

After reading the configuration files (settings.inc.php, define.inc.php, config.inc.php) I have a question about settings.inc.php.

 

What is the role of this lines ?

 

define('_MEDIA_SERVER_1_', '');

define('_MEDIA_SERVER_2_', '');

define('_MEDIA_SERVER_3_', '');

 

I see in the code of Tools.php this "getMediaServer($filename)" use this constant and if this constant empty string assign 0 or 1 or 2 or 3 to $_cache_nb_media_servers and use this in the line below for modulo (check integrity of string $filename) if I understand correctly.

 

if (self::$_cache_nb_media_servers AND ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1)))

 

 

Anyone help me about this 3 lines in settings.php ?

 

thanks

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