-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Extra generated cache images when a product is saved in admin #10363
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
Comments
Looks like #3650 is related to me. Some workarounds are available in comments there. |
This is more a duplicate of #8145, although being able to remove/disable a theme should probably also work around this issue. |
I have tested the proposed solution from @vrann and works fine! I have created a temporary module (waiting for the next update of magento 2.x) that implements the fix without changing anything in the vendor core folder: di.xml:
app\code\VENDOR\MagentoFix\Model\Product\Image\Cache.php: With the contents of: @vrann fix with the namespace changed to VENDOR. |
@miquelcoma, thank you for your report. |
I'm working on it #SQUASHTOBERFEST |
…2abcedbe2e67996b043041b48) + added check for used themes in products, categories and cms pages) REF magento2/issues#10363 UnitTests are failing due to mocking problems: ``` 1) Magento\Catalog\Test\Unit\Model\Product\Image\CacheTest::testGenerate Error: Call to a member function getId() on null ``
@vrann , I am using magento 2.1.6 version , in my admin panel having images on each and every products , but frontend image path didn't created a folder '"cache/f073062f50e48eb0f0998593e568d857" .. Please give a solutions . |
Waiting for the official fix, do you have suggestions to identify which are the unused cache folders so I can delete it? |
Hi was wondering if is there is an update on this? |
Hi @engcom-Bravo. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Bravo Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @miquelcoma. Thank you for your report and collaboration! The related internal Jira ticket But if you still run into this problem please update or provide additional information/steps/preconditions in the Description section and reopen this issue. |
Hi @miquelcoma. Thank you for your report and collaboration! The related internal Jira ticket But if you still run into this problem please update or provide additional information/steps/preconditions in the Description section and reopen this issue. |
I was not able to reproduce the issue according to provided steps. |
Uh oh!
There was an error while loading. Please reload this page.
When saving a product in admin, extra images are generated in pub/media/catalog/product/cache.
the sizes are coming from the view.xml file defined in the luma and blank themes in the vendor core folder.
Preconditions
Steps to reproduce
Expected result
Actual result
How I can avoid those extra images generated in the cache folder?
The text was updated successfully, but these errors were encountered: