title: get current module and page identifier in Magento?
body: <p>I need to get Current page Identifier and current module in Magento. </p>
  
  <p>I used the below code.</p>
  
  <pre><code>Mage::app()-&gt;getRequest()-&gt;getModuleName() - To get current module.
  Mage::getSingleton('cms/page')-&gt;getIdentifier() - To get current page
  </code></pre>
  
  <p>Its working once clear the magento cache otherwise it shows the old page and module. </p>
  
  <h2>Example:</h2>
  
  <p>When we check in home page it gives 'cms' as module and 'home' as page. 
  Now I click the Contact page now also it shows same result. </p>
  
  <p>After clear the cache and check the contact page it shows "cms" as modle and 'contact' as page Identifier.</p>
  
  <p>How to get current page Identifier  and module without clear cache every time?</p>