Jump to content

Block layered price indexation - still opened mysql connection


Recommended Posts

Hi,

 

we have aprox. 800 products, with a lot of special prices (total around 30 000), when we run
 

http://eshop.xxx.xxx/modules/blocklayered/blocklayered-price-indexer.php?token=xxx&full=1 

in mysql admin processes we can see this script opened around 5 times still opened and it wont close...

I tried to add mysql_close, exit, flush...

Maybe make mysql_close thru Db class?

Link to comment
Share on other sites

  • 2 months later...

Great, now in php processes we can see opened blocklayered-price-indexer.php around 100 times!!! (count is changing).

I tried to insert to table log row every time the file is called (with time count) and after indexing there are around 200 rows, time is aprox. 200 seconds

Link to comment
Share on other sites

Great, solved!!! :)

 

In blocklayered.php, function indexPrices is function for calling again price indexation if last 100 of products timed out BUT (!!!)

the $max_executiontime is forced setted to 5s, which is too small (in our script, indexation runs max aprox. 50s). so the script called all day again and again indexation.... I changed $max_executiontime to our server value which is 80s and now the processes and DB is clean :)

Link to comment
Share on other sites

×
×
  • Create New...