Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,876
- Plugin Contributions:
- 7
Updating a customer-related SESSION variable on pageload with an observer
When I update a custom field in the customer record, I want that to take effect on the next page load.
Initially I am using the notifier-observer in function zen_is_logged_in to get the custom field, as it is only used when the customer is logged in, but I see that function gets called multiple times on a page load so it's wasteful.
Suggestions for a better notifier/way to do this, that gets called once?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...