Disable Cleaning of Categories after product save #78

Closed
oblomovx opened this Issue Nov 18, 2014 · 3 comments

Projects

None yet

2 participants

@oblomovx

Hi,

Is it possible to disable the cleaning of the related categories after a product is saved? We have products that are tagged in many categories, so saving 1 product leads to invalidating a lot of categories.

I have tried to disable the cleaning of the categories by commenting out the following lines in \Model\Observer\Save.php

               /* foreach ($categories as $categoryId) {
                    $this->_getFpc()->clean(
                        sha1('category_' . $categoryId)
                    );
                }*/

But this doesn't seem to work. Is there anyway to make this work?

@GordonLesti
Owner

Hello @oblomovx I'm sorry, at the moment you can't fix this without a hack like yours. To make your hack complete you should also disable these lines https://github.com/GordonLesti/Lesti_Fpc/blob/master/app/code/community/Lesti/Fpc/Helper/Block.php#L126 in Lesti_Fpc_Helper_Block
At the moment, I'm working on a solution to edit the cache_tags by an event.

@oblomovx

Hello Gordon,

Thank you for the respons, I have disabled the lines and it seems to work indeed. Keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment