Forum Replies Created
-
AuthorPosts
-
Wideung AB
Participantyes they were.
Wideung AB
ParticipantI have noticed that all commisions are unpaid (at least right now when importing), will the status change to paid? is this an easy task to do in database perhaps?
Wideung AB
Participantwell everything is still importing, it is importing commisions, it is around 80000 total, and it has gotten to 50 000, so soon š
btw, does it recreate commisions based from the orders? or does it take from the wcfm commisions table?
if I would do this on my live site, could the site be up and running despite the import taking place?
Wideung AB
ParticipantUpdate: Seems to be working, I have a commision list now! And it is still going! will get back when it is complete and report back the result
Wideung AB
ParticipantJust realized I could use wp-cli to run the cron event. I will report back if it is working
Wideung AB
Participantantoher questdion, is it possible to run a query directly against the database to achieve the same goal as the order migration cron?
Wideung AB
Participantwouldn“t it be better to change the migration so that it doesn“t tries to read alla the orders at once, better to say take 1000 orders at a time or something?
yeah, i have 250 000 orders, and even if I allocated 50 GB of my ram it probably wouldnĀ“t be able to read everything to memory…must be a another/better way?Wideung AB
ParticipantHi, yes I have disabled wp_cron in my config.php, but I have linux cron running instead.You can read about it here: https://woocommerce.com/document/automatewoo/replace-wordpress-cron-real-cron-job/
but ok, the problem is memory exhaustion, but I have 1GB allocated, i can ofcourse allocate more for while so I test this.. thanks
Wideung AB
Participanthi, that is incorrect. I donĀ“t use WP_Cron , I use “real” linux cron to run wp-cron.php every 5 minute, and that is working (this has several advantages over “normal” wp-cron which is only fired when people is activly on your site, and since my site has 20 000 uniqyue visitors/day it slows my site down. You can see it on the wordpress cron scheduling that they are firing as they should.
So there must be something else that is not triggering your crons unfortunatly.
Wideung AB
Participantperfect!
Wideung AB
ParticipantAWESOME!!!!
Thanks!Wideung AB
ParticipantThis reply has been marked as private.Wideung AB
Participantyes, I am creating the clone site right now, will get back to you as soon as it is ready
-
AuthorPosts
