Skip to content

Commit

Permalink
4.1.8
Browse files Browse the repository at this point in the history
- Removed clear cache on checkout
  • Loading branch information
andys2p committed Oct 22, 2021
1 parent 75efe3f commit 0cf271e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
25 changes: 14 additions & 11 deletions Block/Payment/Send.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,22 @@ protected function prepareBlockData()
$helper_obj = $this->_helper;
$s2p_transaction = $this->_s2pTransaction->create();

// Clearing cache affected performance on big sites. In case your transactions don't work
// please contact us for more investigation on the problem.
//
// Sorry for any inconvenience!!! No other way to obtain order after gateway payment processing...
// If you have a cleaner solution, please contact us!
$types = [ 'config', 'layout', 'block_html', 'collections', 'reflection', 'db_ddl', 'eav',
'config_integration', 'config_integration_api', 'full_page', 'translate',
'config_webservice' ];

foreach ($types as $type) {
$this->_cacheTypeList->cleanType($type);
}

foreach ($this->_cacheFrontendPool as $cacheFrontend) {
$cacheFrontend->getBackend()->clean();
}
// $types = [ 'config', 'layout', 'block_html', 'collections', 'reflection', 'db_ddl', 'eav',
// 'config_integration', 'config_integration_api', 'full_page', 'translate',
// 'config_webservice' ];
//
// foreach ($types as $type) {
// $this->_cacheTypeList->cleanType($type);
// }
//
// foreach ($this->_cacheFrontendPool as $cacheFrontend) {
// $cacheFrontend->getBackend()->clean();
// }

$order_is_ok = true;
$order_error_message = '';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "smart2pay/magento2",
"description": "Use Smart2Pay module to have access to 200+ payment methods.",
"type": "magento2-module",
"version": "4.1.7",
"version": "4.1.8",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Smart2Pay_GlobalPay" setup_version="4.1.7">
<module name="Smart2Pay_GlobalPay" setup_version="4.1.8">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Quote"/>
Expand Down

0 comments on commit 0cf271e

Please sign in to comment.