Skip to content
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
Closed

Disable Cleaning of Categories after product save #78

oblomovx opened this issue Nov 18, 2014 · 3 comments

Comments

@oblomovx
Copy link

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
Copy link
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
Copy link
Author

Hello Gordon,

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

@GordonLesti
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants