magento-module aoe_blackholesession
Will skip creating a real session for bots
aoepeople/aoe_blackholesession
Will skip creating a real session for bots
- Monday, August 15, 2016
- by fbrnc
- Repository
- 39 Watchers
- 18 Stars
- 94 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 1 Open issues
- 2 Versions
- 0 % Grown
AOE_BlackHoleSession
Author: Fabrizio Branca, (*1)
See: https://github.com/colinmollenhour/Cm_RedisSession/issues/91, (*2)
Bots (including load balancers and reverse proxies) will create many sessions that will never be used again.
Instead we're detecting them based on the user agent and will skip creating a real session., (*3)
Configuration
Add this to your local.xml file:, (*4)
<?xml version="1.0" encoding="UTF-8"?>
<config>
<global>
[...]
<aoeblackholesession>
<bot_regex><![CDATA[/^elb-healthchecker/i]]></bot_regex>
</aoeblackholesession>
[...]
</global>
</config>