Optimize docker and solve memory issues #46
Reference in New Issue
Block a user
Delete Branch "optimize-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Optimize docker and solve memory issues
Details:
https://app.asana.com/0/697944902557002/880296706239050
Docker and live installations were very slow and memory usage was exploding for json requests.
Resolution:
The biggest culprit was woocommerce itself because he was importing its frontend files on every api request. Fortunatelly they fixed this issue in their latest
version, so woocommerce is updated to latest version.
Remove unused plugins (
akismet,hello-dolly,klarna-checkout-for-woocommerce,woocommerce-gateway-paypal-express-checkout,mailchimp-for-woocommerce,capability-manager-enhanced)Remove
woocommerce-jetpackwhich we only use for prefixing order numbers but he is dragging json request down. Order number prefixing is implemented in this PR with hook on wooocommerce filter for order number.Added opcache in docker
Prepare:
Execute clean docker install (remove volume, remove docker resources)
Smoke test:
Login as admin on backend
Create customer and commercial lead organizations and users
Create simple, template and bundle product following steps in (https://gitlab.com/saburly/wiaas/new-wiaas/merge_requests/42)
Set prices to bundle product
Login as commercial lead and set price extras
Login as customer and order package
During checkout process create new project for order and complete order
Validate that order has prefixed number on frontend, admin interface and commercial lead interface.
Open order as admin on backend and validate order project metabox uses radio buttons.
Validate that
Order projectsubmenu is visible and admin can open it and create new order projectsValidate that frontend interface is a lot faster than before.
changed the description
changed the description
added 1 commit
59e60bef- handle order projectsCompare with previous version
changed the description
assigned to @bilal.catic
added 4 commits
master1b5b8e25- Merge branch 'master' into optimize-dockerCompare with previous version
merged
mentioned in commit
892571b179