New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Cleaning of Categories after product save #78

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

Comments

Projects
None yet
2 participants
@oblomovx

oblomovx commented Nov 18, 2014

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

This comment has been minimized.

Show comment
Hide comment
@GordonLesti

GordonLesti Nov 19, 2014

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.

Owner

GordonLesti commented Nov 19, 2014

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

This comment has been minimized.

Show comment
Hide comment
@oblomovx

oblomovx Nov 20, 2014

Hello Gordon,

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

oblomovx commented Nov 20, 2014

Hello Gordon,

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

@GordonLesti

This comment has been minimized.

Show comment
Hide comment
Owner

GordonLesti commented Nov 20, 2014

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