-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ps_crossselling : Smarty cache clearing can break payment flow #24338
Comments
Both issues has common issue with performances but my issue is the module break the order process after payment. |
We have a merchant with more 50 orders not created after payments every days ! |
@kpodemski
The solution to the latter is what @Matt75 implemented (remove Do you think there are other things to take into account about this performance issue? |
Describe the bug
The module https://github.com/PrestaShop/ps_crossselling generate a lot of cache files on filesystem and clear cache at every order status change causing poor performances and issues during checkout.
It generate a lot of cache files due to cache key used, that's contains every id_product in current cart https://github.com/PrestaShop/ps_crossselling/blob/v2.0.1/ps_crossselling.php#L190
It clear cache at every order status changes
https://github.com/PrestaShop/ps_crossselling/blob/v2.0.1/ps_crossselling.php#L108
That's cause poor performances and sometime issues during checkout when PrestaShop doing the order create process.
Expected behavior
Avoid clear cache on Order Status change and stop generate too much cache files on filesystem.
Steps to Reproduce
Steps to reproduce the behavior:
Very hard to reproduce so don't loose time to try, it require a shop with many users at same time to create reproductible conditions
Stack trace
Additional information
Reported by Sentry
The text was updated successfully, but these errors were encountered: