Plugin Directory

Changeset 3466596


Ignore:
Timestamp:
02/21/2026 09:09:36 PM (5 weeks ago)
Author:
aamato
Message:

Release 1.2.1

Location:
spamanvil
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • spamanvil/tags/1.2.1/includes/class-spamanvil-comment-processor.php

    r3461359 r3466596  
    138138        if ( 'async' === $mode ) {
    139139            $this->queue->enqueue( $comment_id, $analysis['score'] );
     140            spawn_cron();
    140141        } else {
    141142            // Sync mode: process immediately.
  • spamanvil/tags/1.2.1/includes/class-spamanvil.php

    r3461590 r3466596  
    3030        $this->check_db_version();
    3131        $this->define_hooks();
     32        $this->ensure_cron_scheduled();
    3233    }
    3334
     
    132133    }
    133134
     135    private function ensure_cron_scheduled() {
     136        if ( ! wp_next_scheduled( 'spamanvil_process_queue' ) ) {
     137            wp_schedule_event( time(), 'every_five_minutes', 'spamanvil_process_queue' );
     138        }
     139        if ( ! wp_next_scheduled( 'spamanvil_cleanup_logs' ) ) {
     140            wp_schedule_event( time(), 'daily', 'spamanvil_cleanup_logs' );
     141        }
     142    }
     143
    134144    private function check_db_version() {
    135145        $current = get_option( 'spamanvil_db_version', '' );
  • spamanvil/tags/1.2.1/languages/spamanvil-pt_BR.po

    r3461590 r3466596  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.0\n"
     8"Project-Id-Version: SpamAnvil 1.2.1\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
  • spamanvil/tags/1.2.1/readme.txt

    r3461590 r3466596  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
     217= 1.2.1 =
     218* Fix: Queue now processes automatically — spawn_cron() called after each comment is enqueued so processing starts immediately instead of waiting for the next site visit
     219* Fix: Cron event is verified on every page load and re-scheduled if missing (prevents stale queues after plugin reinstall or cron table cleanup)
     220
    217221= 1.2.0 =
    218222* Fix: "Process Queue Now" no longer blocked by concurrent WP-Cron lock — manual processing always works immediately
  • spamanvil/tags/1.2.1/spamanvil.php

    r3461590 r3466596  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.2.0
     6 * Version:           1.2.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.0' );
     21define( 'SPAMANVIL_VERSION', '1.2.1' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
  • spamanvil/trunk/includes/class-spamanvil-comment-processor.php

    r3461359 r3466596  
    138138        if ( 'async' === $mode ) {
    139139            $this->queue->enqueue( $comment_id, $analysis['score'] );
     140            spawn_cron();
    140141        } else {
    141142            // Sync mode: process immediately.
  • spamanvil/trunk/includes/class-spamanvil.php

    r3461590 r3466596  
    3030        $this->check_db_version();
    3131        $this->define_hooks();
     32        $this->ensure_cron_scheduled();
    3233    }
    3334
     
    132133    }
    133134
     135    private function ensure_cron_scheduled() {
     136        if ( ! wp_next_scheduled( 'spamanvil_process_queue' ) ) {
     137            wp_schedule_event( time(), 'every_five_minutes', 'spamanvil_process_queue' );
     138        }
     139        if ( ! wp_next_scheduled( 'spamanvil_cleanup_logs' ) ) {
     140            wp_schedule_event( time(), 'daily', 'spamanvil_cleanup_logs' );
     141        }
     142    }
     143
    134144    private function check_db_version() {
    135145        $current = get_option( 'spamanvil_db_version', '' );
  • spamanvil/trunk/languages/spamanvil-pt_BR.po

    r3461590 r3466596  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: SpamAnvil 1.2.0\n"
     8"Project-Id-Version: SpamAnvil 1.2.1\n"
    99"Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-"
    1010"plugin-for-wordpress/\n"
  • spamanvil/trunk/readme.txt

    r3461590 r3466596  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    215215== Changelog ==
    216216
     217= 1.2.1 =
     218* Fix: Queue now processes automatically — spawn_cron() called after each comment is enqueued so processing starts immediately instead of waiting for the next site visit
     219* Fix: Cron event is verified on every page load and re-scheduled if missing (prevents stale queues after plugin reinstall or cron table cleanup)
     220
    217221= 1.2.0 =
    218222* Fix: "Process Queue Now" no longer blocked by concurrent WP-Cron lock — manual processing always works immediately
  • spamanvil/trunk/spamanvil.php

    r3461590 r3466596  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.2.0
     6 * Version:           1.2.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.2.0' );
     21define( 'SPAMANVIL_VERSION', '1.2.1' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.