- Nginx 1.4
- PHP 5.5 FPM
Clicking on one of the Reindex Data links executes the reindex process and immediately shows the URL from action preReindexProcess()
but clicking on that link to initiate a new request takes as long as it takes to wait for the reindexing.
So something is still using the same connection and waits to finish the previous request. How to initiate a new request without waiting for the previous one?
Also the postReindexProcess()
action will never be executed it only shows in var/report/ the error:
a:5:{i:0;s:144:"Cannot send headers; headers already sent in Zookal/Index/Model/Observer.php, line 37";i:1;s:1566:"#0 lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
If this is not working properly you cannot implement it in checkout->saveOrder action ...
Sending the header
Connection: close
inZookal_Index_Model_Observer::preReindexProcess ()
does also not work. The click on the link forces the user to wait 20-30 seconds and then loads the indexer list but the indexer is still running in the background.Nginx config says to add
fastcgi_pass_header
... which isn't working so I've disabled every keep-alive request that nginx will always sendConnection: close
.