1

We have created custom category product collection having pagination, but when we add below code it's not working with pagination. When we click next page then it's always showing first page product.

<action method="setCacheLifetime">
   <lifetime>3600</lifetime> 
</action> 

1 Answer 1

1

Your getCacheKeyInfo needs to include the current page:

http://magebase.com/magento-tutorials/adding-cache-support-to-magento-blocks/

And to get the current page, you can call:

Mage::app()->getRequest()->getParam('p', 1);
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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