admin管理员组文章数量:1434893
So I have recently migrated from a regular site to a wordpress CMS all via MySQL. I successfully was able to adapt the old database with that of WordPress.
Now, the site has content in 3 languages. I am using polylang to achieve that. I have successfully created the taxonomy relationships and I can see that all my posts have the required language id. I also have around 60 Categories. Polylang has a feature where if the post is updated (not the database update) the required categories are created on the fly in the posts' language. I have tested this with a manual update and it works. But the problem is I am unable to find a solution to bulk update all the posts together at once.
I tried what is written here But then I just get an error 500 when I reload the site ("localhost is unable to handle this request). First I thought that this is an error of the memory limits and execution time. I have set it all to unlimited but with no success. I am using BITNAMI WAMP stack on Windows as my development server.
Any help will be a great one!
Thanks in advance.
So I have recently migrated from a regular site to a wordpress CMS all via MySQL. I successfully was able to adapt the old database with that of WordPress.
Now, the site has content in 3 languages. I am using polylang to achieve that. I have successfully created the taxonomy relationships and I can see that all my posts have the required language id. I also have around 60 Categories. Polylang has a feature where if the post is updated (not the database update) the required categories are created on the fly in the posts' language. I have tested this with a manual update and it works. But the problem is I am unable to find a solution to bulk update all the posts together at once.
I tried what is written here But then I just get an error 500 when I reload the site ("localhost is unable to handle this request). First I thought that this is an error of the memory limits and execution time. I have set it all to unlimited but with no success. I am using BITNAMI WAMP stack on Windows as my development server.
Any help will be a great one!
Thanks in advance.
Share Improve this question edited Apr 5, 2019 at 18:43 Byte IT Antwerpen asked Apr 5, 2019 at 18:29 Byte IT AntwerpenByte IT Antwerpen 15 bronze badges1 Answer
Reset to default 0You mentioned setting the memory limits and execution time to unlimited, so this may not be the right answer. I thought I'd mention it anyway since it may help.
Since you have so much content, you'll have to find ways to accomplish this in the background rather than during the request. This is the perfect situations for scheduled tasks.
This would allow you to schedule an update that will run when cron runs rather than within the scope of the request.
You can also use WP CLI to write a command that will accomplish this. This allows you to run this manually and/or schedule this with cron.
Hope this helps.
本文标签: migrationUpdate around 200000 posts
版权声明:本文标题:migration - Update around 200,000 posts 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745622540a2666772.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论