I'm running Magento 1.7.0.2 and have noticed strange behavior with the adminhtml/session
messaging system:
Mage::getSingleton('adminhtml/session')->addSuccess("Message"); //or addError();
If you have two pages open in the backend and page 1 calls this function, upon refreshing page 2 (granted that this is done prior to page 1 completing it's refresh), the message will be rendered on page 2.
How to reproduce:
- Refresh all caches (
System
→Cache Management
→Select All
→Refresh
- Immediately open Magento's order page (
Sales
→Orders
)
You'll now notice that the Orders page has the success message rendered, something along the lines of:
9 cache type(s) refreshed.
See the image below where this message is rendered on the Orders page
Has anybody else experienced this behavior? I'm trying to establish whether this is brought about by my specific instance of Magento as a result of third party extensions or whether it exists in Magento's core.
If the latter, does anybody perhaps know of a fix for this? I know it may not seem very high priority, but there are instances where this behavior could be detrimental to site functionality.