WordPress and pthreads
-
Hi, I know this is probably not a good idea but I want to know how to make this work anyway. In a WordPress plugin I have the following code.
class Test_WP extends Thread { public function run() { update_option('test', 'two'); } } update_option('test', 'one'); $test_wp = new Test_WP(); $test_wp->start();
The option in the database is set to ‘one’. If I call and require wp–load.php in the thread it makes no difference, I thought the thread might not have access to the WP functions but no errors have been generated.
Any ideas on how to get WordPress multithreaded?
- The topic ‘WordPress and pthreads’ is closed to new replies.