I am facing a very big problem in magento regarding cache, I am using 1.7 version of magento and I have a file where I am checking page title but result is correct only on first hit.And after that the old cache result. How do I resolve it?


use this code


you can use this code in your phtml file

| improve this answer | |
  • thanks vivek .But it's not working – User3515241 Oct 20 '15 at 9:46
  • Still it is returning old value? – Vivek Khandelwal Oct 20 '15 at 9:46
  • yes it is returning same value – User3515241 Oct 20 '15 at 9:47
  • Actually header and footers are set via cache in magento Try disabling the cache then it will respond you the correct title – Vivek Khandelwal Oct 20 '15 at 9:48
  • if i disable the cache then it will effect on my site speed.. i think you know this.. – User3515241 Oct 20 '15 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.