cartdefender_actions - Version 2.0.2

Version Notes

Performance & event sending improvements.

Download this release

Release Info

Developer Radoslaw Gliniecki
Extension cartdefender_actions
Version 2.0.2
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.2

app/code/community/CartDefender/Actions/Model/AsyncLocalSender.php CHANGED
@@ -64,7 +64,7 @@ class CartDefender_Actions_Model_AsyncLocalSender extends Varien_Object
64
  $remoteSenderConf['port'],
65
  $errno,
66
  $errstr,
67
- 0.025 /*timeout*/
68
  );
69
  $success = fwrite($socket, $request);
70
  Mage::getSingleton('core/session')->setLastEventTime(time());
64
  $remoteSenderConf['port'],
65
  $errno,
66
  $errstr,
67
+ 0.5 /*timeout*/
68
  );
69
  $success = fwrite($socket, $request);
70
  Mage::getSingleton('core/session')->setLastEventTime(time());
app/code/community/CartDefender/Actions/controllers/CartDefenderSenderController.php CHANGED
@@ -36,6 +36,23 @@ class CartDefender_Actions_CartDefenderSenderController
36
  parent::_construct();
37
  $this->logger = Mage::helper('actions/logger');
38
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  /**
41
  * Synchronously sends the text data contained in the POST request
36
  parent::_construct();
37
  $this->logger = Mage::helper('actions/logger');
38
  }
39
+
40
+ public function preDispatch()
41
+ {
42
+ $this->setFlag('', self::FLAG_NO_START_SESSION, 1);
43
+ $this->setFlag('', self::FLAG_NO_PRE_DISPATCH, 1);
44
+ parent::preDispatch();
45
+ return $this;
46
+ }
47
+
48
+ public function postDispatch()
49
+ {
50
+ $this->setFlag('', self::FLAG_NO_START_SESSION, 1);
51
+ $this->setFlag('', self::FLAG_NO_POST_DISPATCH, 1);
52
+ parent::postDispatch();
53
+ return $this;
54
+ }
55
+
56
 
57
  /**
58
  * Synchronously sends the text data contained in the POST request
app/code/community/CartDefender/Actions/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <CartDefender_Actions>
15
- <version>2.0.0</version>
16
  </CartDefender_Actions>
17
  </modules>
18
 
@@ -45,15 +45,6 @@
45
  </cartdefender_controller_front_send_response_before>
46
  </observers>
47
  </controller_front_send_response_before>
48
- <catalog_controller_product_view>
49
- <observers>
50
- <cartdefender_catalog_controller_product_view>
51
- <type>singleton</type>
52
- <class>CartDefender_Actions_Model_Observer</class>
53
- <method>captureEvent</method>
54
- </cartdefender_catalog_controller_product_view>
55
- </observers>
56
- </catalog_controller_product_view>
57
  <checkout_cart_save_after>
58
  <observers>
59
  <cartdefender_checkout_cart_save_after>
@@ -207,60 +198,6 @@
207
  </cartdefender_sales_order_payment_void>
208
  </observers>
209
  </sales_order_payment_void>
210
- <wishlist_add_item>
211
- <observers>
212
- <cartdefender_wishlist_add_item>
213
- <type>singleton</type>
214
- <class>CartDefender_Actions_Model_Observer</class>
215
- <method>captureEvent</method>
216
- </cartdefender_wishlist_add_item>
217
- </observers>
218
- </wishlist_add_item>
219
- <wishlist_add_product>
220
- <observers>
221
- <cartdefender_wishlist_add_product>
222
- <type>singleton</type>
223
- <class>CartDefender_Actions_Model_Observer</class>
224
- <method>captureEvent</method>
225
- </cartdefender_wishlist_add_product>
226
- </observers>
227
- </wishlist_add_product>
228
- <wishlist_add_product>
229
- <observers>
230
- <cartdefender_wishlist_add_product>
231
- <type>singleton</type>
232
- <class>CartDefender_Actions_Model_Observer</class>
233
- <method>captureEvent</method>
234
- </cartdefender_wishlist_add_product>
235
- </observers>
236
- </wishlist_add_product>
237
- <wishlist_product_add_after>
238
- <observers>
239
- <cartdefender_wishlist_product_add_after>
240
- <type>singleton</type>
241
- <class>CartDefender_Actions_Model_Observer</class>
242
- <method>captureEvent</method>
243
- </cartdefender_wishlist_product_add_after>
244
- </observers>
245
- </wishlist_product_add_after>
246
- <wishlist_share>
247
- <observers>
248
- <cartdefender_wishlist_share>
249
- <type>singleton</type>
250
- <class>CartDefender_Actions_Model_Observer</class>
251
- <method>captureEvent</method>
252
- </cartdefender_wishlist_share>
253
- </observers>
254
- </wishlist_share>
255
- <wishlist_update_item>
256
- <observers>
257
- <cartdefender_wishlist_update_item>
258
- <type>singleton</type>
259
- <class>CartDefender_Actions_Model_Observer</class>
260
- <method>captureEvent</method>
261
- </cartdefender_wishlist_update_item>
262
- </observers>
263
- </wishlist_update_item>
264
  <controller_action_predispatch_checkout_onepage_index>
265
  <observers>
266
  <cartdefender_controller_action_predispatch_checkout_onepage_index>
12
  <config>
13
  <modules>
14
  <CartDefender_Actions>
15
+ <version>2.0.2</version>
16
  </CartDefender_Actions>
17
  </modules>
18
 
45
  </cartdefender_controller_front_send_response_before>
46
  </observers>
47
  </controller_front_send_response_before>
 
 
 
 
 
 
 
 
 
48
  <checkout_cart_save_after>
49
  <observers>
50
  <cartdefender_checkout_cart_save_after>
198
  </cartdefender_sales_order_payment_void>
199
  </observers>
200
  </sales_order_payment_void>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  <controller_action_predispatch_checkout_onepage_index>
202
  <observers>
203
  <cartdefender_controller_action_predispatch_checkout_onepage_index>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cartdefender_actions</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Increase sales with smart targeted popups and offers delivered to your visitors in real time.</summary>
10
  <description>You can instantly use messages and offers which convert your visitors into customers. You focus on your business needs without A/B tests, as Cart Defender learns which popups convert the best and adjusts itself automatically.</description>
11
- <notes>Minor adjustments for Varnish caching, though backwards incompatible.</notes>
12
  <authors><author><name>Radoslaw Gliniecki</name><user>Cart_Defender</user><email>radek@cartdefender.com</email></author><author><name>Jan Zankowski</name><user>janzankowski</user><email>jan@cartdefender.com</email></author><author><name>Przemyslaw Gliniecki</name><user>psgliniecki</user><email>psg@cartdefender.com</email></author></authors>
13
- <date>2016-11-08</date>
14
- <time>11:31:47</time>
15
- <contents><target name="magecommunity"><dir name="CartDefender"><dir name="Actions"><dir name="Block"><file name="Script.php" hash="3b1ca143e8b9209ce3e9df6dce1621ac"/></dir><dir name="Helper"><file name="Data.php" hash="dd4057deaaa8b0bdcfcc3e6f7c31091c"/><file name="Logger.php" hash="f21b3aed521b3761a890b22ba0f247a9"/></dir><dir name="Model"><file name="AsyncLocalSender.php" hash="f4df465d8bba0799a5381b50e7fe244f"/><file name="CorrelationIdManager.php" hash="7215fd45ca052d5bde16e93d278565be"/><file name="EventAsyncLocalSender.php" hash="cd9a25e21225cb1966da47fbbc8f9854"/><file name="EventBuilder.php" hash="d814e3b3c947e5a4815b43ba268a9b87"/><file name="Observer.php" hash="f34856aad9bf7aeb870317f6548eb349"/></dir><dir name="controllers"><file name="CartDefenderSenderController.php" hash="2932402af887cac75255758c7fd4da34"/></dir><dir name="etc"><file name="config.xml" hash="a98f35a697800c7eff52a11f9448f72b"/><file name="system.xml" hash="3a0ef9f8ca4414d7714e717a64816a33"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CartDefender_Actions.xml" hash="f9e77235e41f79ac086160ef2e494837"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="actions"><file name="script.phtml" hash="aa322fad9cd04ae7c910936e043fa8f1"/></dir></dir><dir name="layout"><file name="actions.xml" hash="e6a4b2f6d8132a833a1b5f8b9fce7166"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.7.0.2</min><max>1.9.2.4</max></package><extension><name>openssl</name><min>0.9.6</min><max>1.0.1</max></extension></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cartdefender_actions</name>
4
+ <version>2.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Increase sales with smart targeted popups and offers delivered to your visitors in real time.</summary>
10
  <description>You can instantly use messages and offers which convert your visitors into customers. You focus on your business needs without A/B tests, as Cart Defender learns which popups convert the best and adjusts itself automatically.</description>
11
+ <notes>Performance &amp; event sending improvements.</notes>
12
  <authors><author><name>Radoslaw Gliniecki</name><user>Cart_Defender</user><email>radek@cartdefender.com</email></author><author><name>Jan Zankowski</name><user>janzankowski</user><email>jan@cartdefender.com</email></author><author><name>Przemyslaw Gliniecki</name><user>psgliniecki</user><email>psg@cartdefender.com</email></author></authors>
13
+ <date>2016-12-13</date>
14
+ <time>23:41:26</time>
15
+ <contents><target name="magecommunity"><dir name="CartDefender"><dir name="Actions"><dir name="Block"><file name="Script.php" hash="3b1ca143e8b9209ce3e9df6dce1621ac"/></dir><dir name="Helper"><file name="Data.php" hash="dd4057deaaa8b0bdcfcc3e6f7c31091c"/><file name="Logger.php" hash="f21b3aed521b3761a890b22ba0f247a9"/></dir><dir name="Model"><file name="AsyncLocalSender.php" hash="e5bcd13994390e038b3cfeb26a404014"/><file name="CorrelationIdManager.php" hash="7215fd45ca052d5bde16e93d278565be"/><file name="EventAsyncLocalSender.php" hash="cd9a25e21225cb1966da47fbbc8f9854"/><file name="EventBuilder.php" hash="d814e3b3c947e5a4815b43ba268a9b87"/><file name="Observer.php" hash="f34856aad9bf7aeb870317f6548eb349"/></dir><dir name="controllers"><file name="CartDefenderSenderController.php" hash="3d1ab36a1081a17e493d3c6af898f3c4"/></dir><dir name="etc"><file name="config.xml" hash="b9d1b6f7bb362aa490d2f13f38695867"/><file name="system.xml" hash="3a0ef9f8ca4414d7714e717a64816a33"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CartDefender_Actions.xml" hash="f9e77235e41f79ac086160ef2e494837"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="actions"><file name="script.phtml" hash="aa322fad9cd04ae7c910936e043fa8f1"/></dir></dir><dir name="layout"><file name="actions.xml" hash="e6a4b2f6d8132a833a1b5f8b9fce7166"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.7.0.2</min><max>1.9.2.4</max></package><extension><name>openssl</name><min>0.9.6</min><max>1.0.1</max></extension></required></dependencies>
18
  </package>