I have been wondering always, where is all the registry data stored in Magento ?
I know that even singleton objects are stored in the registry. And registry is just a static array variable of the Mage class.
I have a couple of questions here to clear my confusion:
- Is registry different for different users ? I mean is it created on a per-user (per HTTP request) basis?
For example,
Mage::register('foo', 'Hello World'); //set a value for foo Mage::registry('foo'); //will this return hello world for all HTTP users ?
- Is registry data stored in sessions ? If not how will Magento identify which user invoked the registry data ?
I have read Alan Storm's blog article as well as his answer on StackOverFlow regarding this. But I couldn't kill the confusion. Please correct me If I you think my basics are messed up. Thanks