-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MAG-366-433' into 4.5.1
- Loading branch information
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
www/magento/app/code/community/Signifyd/Connect/Model/Container/Fingerprint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
class Signifyd_Connect_Model_Container_Fingerprint extends Enterprise_PageCache_Model_Container_Abstract | ||
{ | ||
/** | ||
* Get identifier from cookies | ||
* | ||
* @return string | ||
*/ | ||
protected function _getCacheId() | ||
{ | ||
return $this->_getCookieValue(Enterprise_PageCache_Model_Cookie::COOKIE_CART, '') | ||
. $this->_getCookieValue(Enterprise_PageCache_Model_Cookie::COOKIE_CUSTOMER, ''); | ||
} | ||
|
||
/** | ||
* Render block content | ||
* | ||
* @return string | ||
*/ | ||
protected function _renderBlock() | ||
{ | ||
return $this->_getPlaceHolderBlock()->toHtml(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
www/magento/app/code/community/Signifyd/Connect/etc/cache.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<config> | ||
<placeholders> | ||
<signifyd_connect_fingerprint> | ||
<block>signifyd_connect/device</block> | ||
<placeholder>SIGNIFYD_CONNECT_FINGERPRINT</placeholder> | ||
<container>Signifyd_Connect_Model_Container_Fingerprint</container> | ||
<cache_lifetime>86400</cache_lifetime> | ||
</signifyd_connect_fingerprint> | ||
</placeholders> | ||
</config> |