-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
do not clear cache when there is no product id #44
Labels
Comments
Could you submit a PR? |
sure I will :) |
tmotyl
added a commit
that referenced
this issue
Oct 8, 2015
Flyingmana
pushed a commit
to Flyingmana/magento-lts
that referenced
this issue
Oct 18, 2016
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Nov 27, 2017
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Dec 6, 2017
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Feb 28, 2018
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Jul 17, 2018
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Sep 19, 2018
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Feb 14, 2019
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Apr 1, 2019
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Aug 22, 2019
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Oct 25, 2019
sreichel
added
Component: Catalog
Relates to Mage_Catalog
fixed
performance
Performance related
labels
Jun 27, 2020
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Aug 20, 2020
randallelliott714
added a commit
to randallelliott714/magento
that referenced
this issue
Oct 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Magento calls cleanCache on before_save in product even if there is no product ID yet (product was just created).
This can lead to unnecessary cache clearing.
see
https://github.com/OpenMage/magento-lts/blob/1.9.2.1/app/code/core/Mage/Catalog/Model/Product.php#L618
the clean cache should be wrapped in
if ($this->getId()) {
}
The text was updated successfully, but these errors were encountered: