Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #9 from ildelux/master
Browse files Browse the repository at this point in the history
Prevent timeout in controller
  • Loading branch information
ildelux authored Dec 4, 2018
2 parents 364c567 + 51ab0c6 commit 9f8c949
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ public function queueAction()
public function resetAction()
{
Mage::getModel("contactlab_hub/exporter_PreviousCustomers")->resetExport();
Mage::getModel("contactlab_hub/cron")->exportPreviousCustomers();
$this->_getSession()->addSuccess(
Mage::helper('contactlab_hub')->__('The queue of all previous customers has been correctly reset.')
);
// prevent timeout in controller
// Mage::getModel("contactlab_hub/cron")->exportPreviousCustomers();
return $this->_redirect('adminhtml/contactlab_hub_logs');
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Contactlab/Hub/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Contactlab_Hub>
<version>2.0.1</version>
<version>2.1.0</version>
</Contactlab_Hub>
</modules>
<global>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"magento-hackathon/magento-composer-installer": "*"
},
"type": "magento-module",
"version": "2.0.1",
"version": "2.1.0",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down

0 comments on commit 9f8c949

Please sign in to comment.