Reputation
424
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 6 22
Newest
 Excavator
Impact
~40k people reached

2d
asked wp_remote_get() not retrieving pages properly
Jan
4
awarded  Excavator
Jan
4
revised How do I create links at the top of WP_List_table?
Missing semi-colon and minor changes
Jan
4
suggested approved edit on How do I create links at the top of WP_List_table?
Jan
4
awarded  Famous Question
Dec
28
comment Alternative to get_posts() due to multithreading cache crash
Just to add, I will restrict pthreads to deal with non-db related issues. And as per your suggestion, use mutex for db writes.
Dec
28
accepted Alternative to get_posts() due to multithreading cache crash
Dec
28
comment Alternative to get_posts() due to multithreading cache crash
This is well explained. Thanks. I also just found out that support for pthreads to work with apache is being removed. In order to make pthreads work, it should be within a CLI evironment. For me, I need pthreads, but I wil postpone this solution till after the release (i.e., an enhancement). Also, I will need to setup WordPress as a CLI envornment (details here wp-cli.org ); doing so will allow me to work a pthreads/WordPress environment from CLI, alllowing me to do the heavy work at the backend without apache. Thaks again.
Dec
26
comment Alternative to get_posts() due to multithreading cache crash
I just like to update. It turned out that any DB access via a thread is causing an error (I tried using $wpdb directly and got a crash). However, I am able to multithread non-db related actions.
Dec
24
comment Alternative to get_posts() due to multithreading cache crash
@toscho - Thanks. Good idea. However it may make things too complex. I like simpler solutions. I will try your suggestion. I will also try to redesign my approach to solving the problem to overcome the multithreading part.
Dec
24
comment Alternative to get_posts() due to multithreading cache crash
@MarkKaplun - What's wrong with you? Why are you so negative and so aggressive? Why do you assume I don't understand multitasking and suggest that I should not use pthreads? Even if you are correct, aren't we supposed to try what we don't understand to expand our knowledge and limits? And isn't this site about asking questions if you do not know how you do a certain thing? I am not pretending anything. I ecountered an error, I realized it is due to using pthreads, and I am asking for a solution, either a setup or a a programming workaround. I was hoping for a constructive answer from yourself.
Dec
24
awarded  Yearling
Dec
24
comment Alternative to get_posts() due to multithreading cache crash
@MarkKaplun - Thanks for your input. However, it seems like you missed the point where I state that "when I make the same get_posts() call in a code section that is not threaded, I do not have the crash"; so it is not a problem with my get_posts($args) call. Moreover, there isn't code that needs to be protected at this point, I am just reading from the WordPress DB via get_posts($args).
Dec
24
revised Alternative to get_posts() due to multithreading cache crash
deleted 95 characters in body
Dec
24
revised Alternative to get_posts() due to multithreading cache crash
added 817 characters in body
Dec
24
asked Alternative to get_posts() due to multithreading cache crash
Nov
21
awarded  Popular Question
Nov
21
revised Download an image from a webpage to the default uploads folder
added 2 characters in body
Nov
19
awarded  Popular Question
Oct
2
awarded  Popular Question