Loading a block from a controller in magento, cache issue?

scottay

New Member
I have two methods inside my controller i call to get html for various ajax updates.\[code\] protected function _getDemoShippingMethodsHtml() { $layout = $this->getLayout(); $update = $layout->getUpdate(); $update->load('checkout_onepage_demoshippingmethod'); $layout->generateXml(); $layout->generateBlocks(); $output = $layout->getOutput(); return $output; } protected function _getSelectedDealerHtml() { $layout = $this->getLayout(); $update = $layout->getUpdate(); $update->load('checkout_onepage_selecteddealer'); $layout->generateXml(); $layout->generateBlocks(); $output = $layout->getOutput(); return $output; }\[/code\]During one request to my controller if i call only one of these methods it loads the block as expected. The problem comes in where i try to call both of these function during one request. Which ever method is called first outputs the expected html, and the second method call outputs the exact same html as the first.
 
Top