Plugin Directory

Changeset 1791038


Ignore:
Timestamp:
12/22/2017 04:10:39 AM (8 years ago)
Author:
Todi.Adiatmo
Message:

update readme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • async-background-worker/trunk/readme.txt

    r1791037 r1791038  
    11=== Async Background Worker ===
    2 Contributors: todi.adiyatmo, gamaup
     2Contributors: Todi.Adiatmo, gamaup
    33Description: Async Background Worker for WordPress.
    44Tags: background worker, async background worker
    55Requires at least: 4.4
    6 Tested up to: 4.8.0
     6Tested up to: 4.9
    77Version: 1.0
    88License: LGPL
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 Async Background Worker, more information please visit this page https://tonjoo.github.io/async-background-worker/
     11Async Background Worker, more information please visit this page [WordPress](https://tonjoo.github.io/async-background-worker/ "Your favorite software")
    1212
    1313== Sample Usage ==
    1414
    15 # What is it ?
     15= What is it ? =
    1616WordPress background worker plugin that enable WordPress to interact with beanstalkd work queue.
    1717
    18 # Why we need a worker ?
     18= Why we need a worker ? =
    1919We can run a very long task in the background, for example we need to import 100.000 row into WordPress databases. Instead of doing the 100.000 import in one job, we can separate the job into many smaller job which is safer.
    2020
    21 # WP-CLI
     21= WP-CLI =
    2222Make sure you have WP CLI installed on your system
    2323
    24 ## Add job to queue
     24== Add job to queue ==
    2525
    26261. Add new job to new worker queue using `add_async_job` command
    27     ```
     27    ```php
    2828    $job = new stdClass(); 
    2929    // the function to run 
     
    3535    ```
    36362. Implement function
    37     ```
     37    ```php
    3838    function function_to_execute_on_background($data) {
    3939        //do something usefull
     
    43433. Run `wp background-worker listen`
    4444
    45 ## Command
     45== Command ==
    4646
    47 ###  `wp background-worker`
     47= `wp background-worker` =
    4848
    4949Run Async Background Worker once.
    5050
    51 ###  `wp background-worker listen`
    52 
     51= `wp background-worker listen` =
    5352Run Async Background Worker in loop (contiously), this is what you want for background worker. WordPress framework is restart in each loop.
    5453
     54= `wp background-worker listen-daemon` =
     55Run Async Background Worker in loop (contiously) without restart the WordPress framework. **NOTE** if you use this mode, any code change will not be reflected. You must restart the Async Background Worker each time you change code. This save memory and speed up thing.
    5556
    56 ###  `wp background-worker listen-daemon`
     57== Changelog ==
    5758
    58 Run Async Background Worker in loop (contiously) without restart the WordPress framework. **NOTE** if you use this mode, any code change will not be reflected. You must restart the Async Background Worker each time you change code. This save memory and speed up thing.
     59= 1.0.0 =
     60* Initial Release
Note: See TracChangeset for help on using the changeset viewer.