Home Forums Newsletter Plugin Support Continously deleted 'newsletter' cron event

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14888
    szepe.viktor
    Participant

    Could it be that even though it is not a “Non-repeating” event it gets deleted after each run?

    # wp cron event list
    +--------------------------------+---------------------+----------------------+---------------+
    | hook                           | next_run_gmt        | next_run_relative    | recurrence    |
    +--------------------------------+---------------------+----------------------+---------------+
    | w3_pgcache_prime               | 2015-01-23 12:35:39 | now                  | 15 minutes    |
    | newsletter                     | 2015-01-23 12:43:43 | 24 seconds           | 5 minutes     |
    | w3_pgcache_cleanup             | 2015-01-23 12:48:01 | 4 minutes 42 seconds | 1 óra         |
    | w3_pgcache_prime               | 2015-01-23 12:50:14 | 6 minutes 55 seconds | Non-repeating |
    +--------------------------------+---------------------+----------------------+---------------+

    # wp cron event run newsletter
    Success: Executed the cron event ‘newsletter’

    # wp cron event list
    +--------------------------------+---------------------+----------------------+---------------+
    | hook                           | next_run_gmt        | next_run_relative    | recurrence    |
    +--------------------------------+---------------------+----------------------+---------------+
    | w3_pgcache_prime               | 2015-01-23 12:35:39 | now                  | 15 minutes    |
    | w3_pgcache_cleanup             | 2015-01-23 12:48:01 | 4 minutes 14 seconds | 1 óra         |
    | w3_pgcache_prime               | 2015-01-23 12:50:14 | 6 minutes 27 seconds | Non-repeating |
    +--------------------------------+---------------------+----------------------+---------------+
    • This topic was modified 7 years, 6 months ago by szepe.viktor.
    • This topic was modified 7 years, 6 months ago by szepe.viktor.
    #14891
    szepe.viktor
    Participant

    The schedule is missing:

    wp cron schedule list
    +---------------------------+------------------------------------------------+----------+
    | name                      | display                                        | interval |
    +---------------------------+------------------------------------------------+----------+
    | w3_cdn_cron_queue_process | [W3TC] CDN queue process (every 900 seconds)   | 900      |
    | w3_pgcache_prime          | [W3TC] Page Cache prime (every 900 seconds)    | 900      |
    | hourly                    | Óránként                                       | 3600     |
    | w3_cdn_cron_upload        | [W3TC] CDN auto upload (every 3600 seconds)    | 3600     |
    | w3_pgcache_cleanup        | [W3TC] Page Cache file GC (every 3600 seconds) | 3600     |
    | twicedaily                | Naponta kétszer                                | 43200    |
    | daily                     | Naponta egyszer                                | 86400    |
    | w3_minify_cleanup         | [W3TC] Minify file GC (every 86400 seconds)    | 86400    |
    +---------------------------+------------------------------------------------+----------+
    
    #14892
    szepe.viktor
    Participant

    I am very sorry. Your plugin was excluded from wp-cli run.

    • This reply was modified 7 years, 6 months ago by szepe.viktor.
    #14911
    Stefano
    Keymaster

    wp-cli run? Can you explain me what’s?

    #14915
    szepe.viktor
    Participant

    wp-cli is – I quote –

    a set of command-line tools for managing WordPress installations.

    I prefer runnig background job (mail sending, backup, cache preload etc.) from CLI thus not putting load on the webserver. That is why wp-cron is disabled.
    Now I run your main wp-cron event separately because Newsletter demands a more frequent run than other things (twice in an hour for others).

    wp --quiet --url=http://www.domain.hu/ --path=/home/user/path-to-wordpress cron event run newsletter

    See: http://wp-cli.org/commands/cron/event/run/

    • This reply was modified 7 years, 6 months ago by szepe.viktor.
    • This reply was modified 7 years, 6 months ago by szepe.viktor.
    #14916
    szepe.viktor
    Participant

    Oh! And the run thing.

    You can set skip-plugins in wp-cli config thus running WordPress faster from CLI.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.