Changeset 3466596
- Timestamp:
- 02/21/2026 09:09:36 PM (5 weeks ago)
- Location:
- spamanvil
- Files:
-
- 12 edited
- 1 copied
-
tags/1.2.1 (copied) (copied from spamanvil/trunk)
-
tags/1.2.1/includes/class-spamanvil-comment-processor.php (modified) (1 diff)
-
tags/1.2.1/includes/class-spamanvil.php (modified) (2 diffs)
-
tags/1.2.1/languages/spamanvil-pt_BR.mo (modified) (previous)
-
tags/1.2.1/languages/spamanvil-pt_BR.po (modified) (1 diff)
-
tags/1.2.1/readme.txt (modified) (2 diffs)
-
tags/1.2.1/spamanvil.php (modified) (2 diffs)
-
trunk/includes/class-spamanvil-comment-processor.php (modified) (1 diff)
-
trunk/includes/class-spamanvil.php (modified) (2 diffs)
-
trunk/languages/spamanvil-pt_BR.mo (modified) (previous)
-
trunk/languages/spamanvil-pt_BR.po (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/spamanvil.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spamanvil/tags/1.2.1/includes/class-spamanvil-comment-processor.php
r3461359 r3466596 138 138 if ( 'async' === $mode ) { 139 139 $this->queue->enqueue( $comment_id, $analysis['score'] ); 140 spawn_cron(); 140 141 } else { 141 142 // Sync mode: process immediately. -
spamanvil/tags/1.2.1/includes/class-spamanvil.php
r3461590 r3466596 30 30 $this->check_db_version(); 31 31 $this->define_hooks(); 32 $this->ensure_cron_scheduled(); 32 33 } 33 34 … … 132 133 } 133 134 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 134 144 private function check_db_version() { 135 145 $current = get_option( 'spamanvil_db_version', '' ); -
spamanvil/tags/1.2.1/languages/spamanvil-pt_BR.po
r3461590 r3466596 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 0\n"8 "Project-Id-Version: SpamAnvil 1.2.1\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" -
spamanvil/tags/1.2.1/readme.txt
r3461590 r3466596 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 215 215 == Changelog == 216 216 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 217 221 = 1.2.0 = 218 222 * 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 4 4 * Plugin URI: https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/ 5 5 * Description: Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics. 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 0' );21 define( 'SPAMANVIL_VERSION', '1.2.1' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ ); -
spamanvil/trunk/includes/class-spamanvil-comment-processor.php
r3461359 r3466596 138 138 if ( 'async' === $mode ) { 139 139 $this->queue->enqueue( $comment_id, $analysis['score'] ); 140 spawn_cron(); 140 141 } else { 141 142 // Sync mode: process immediately. -
spamanvil/trunk/includes/class-spamanvil.php
r3461590 r3466596 30 30 $this->check_db_version(); 31 31 $this->define_hooks(); 32 $this->ensure_cron_scheduled(); 32 33 } 33 34 … … 132 133 } 133 134 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 134 144 private function check_db_version() { 135 145 $current = get_option( 'spamanvil_db_version', '' ); -
spamanvil/trunk/languages/spamanvil-pt_BR.po
r3461590 r3466596 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: SpamAnvil 1.2. 0\n"8 "Project-Id-Version: SpamAnvil 1.2.1\n" 9 9 "Report-Msgid-Bugs-To: https://software.amato.com.br/spamanvil-antispam-" 10 10 "plugin-for-wordpress/\n" -
spamanvil/trunk/readme.txt
r3461590 r3466596 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 215 215 == Changelog == 216 216 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 217 221 = 1.2.0 = 218 222 * Fix: "Process Queue Now" no longer blocked by concurrent WP-Cron lock — manual processing always works immediately -
spamanvil/trunk/spamanvil.php
r3461590 r3466596 4 4 * Plugin URI: https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/ 5 5 * Description: Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics. 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'SPAMANVIL_VERSION', '1.2. 0' );21 define( 'SPAMANVIL_VERSION', '1.2.1' ); 22 22 define( 'SPAMANVIL_DB_VERSION', '1.0.0' ); 23 23 define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset
for help on using the changeset viewer.