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">

1 Answer 1


Your getCacheKeyInfo needs to include the current page:


And to get the current page, you can call:

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

Your Answer

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

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