Closed (works as designed)
Project:
Acquia Connector
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2011 at 21:48 UTC
Updated:
17 Jul 2012 at 19:36 UTC
Customer has all "performance page" configuration settings correct, however they have a custom module with a hook_boot which sets $GLOBALS['conf']['cache'] = FALSE; for some visitors, killing performance. Customer in question was trying to set a cookie for first-time visitors on the back-end, with an expiration date based on the time of the first visit.
As part of the code-sniffing process, grep custom modules for this bad behavior.
Presume we'd need to find a simple regex to detect the problem with minimal number of false-positives. Something like `grep -ERI "cache['\"\]]+[ =]+FALSE" /path/to/some_custom_module`
N/A
None known
Comments
Comment #1
coltraneThis is a good suggestion. We don't currently do any code parsing though. We could piggyback on coder (if it's installed) to provide additional checks and send them off to Insight. We also can't assume grep is installed and shell out, unless it's a feature available only for linux-based hosts at first.
Comment #2
irek02 commentedI don't think this post represents an issue. In this particular case hook_boot alters $GLOBALS['conf']['cache'] at the bootstrap time that is then perfectly detected by acquia_spi module causing "Cache Disabled" alert popup on client's Insight page.