Linux 软件免费装

Queue Ajax Calls Performantly

开发者 eddr
secretchord
更新时间 2026年10月2日 00:41
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-3.0-or-later

标签

performance ajax queue capi pixelyoursite

下载

1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.9 1.1.0 1.1.10 1.1.13 1.1.14 1.1.8

详情介绍:

Reduce server load and increase reliabilty considerably by queuing selected Ajax and REST calls and process them in bulk later on. Load the entire WP system once for every x request. The mechanism is based on catching the calls early in the WP lifecycle via an MU plugin, santizing and queuing. The queue system is based on Automattic's own Action Scheduler plugin. The fields for sanitiation should be defined for security reasons. Processing the calls : the calls are processed in bulk via a hook that is run by CRON. Who is it for At this stage the plugin is a developer level plugin and is intended to be used as such. It requires defining fields for sanitation. However, it comes with a basic implementation for the latest PixelYourSite API calls and can be easily activated without further configuration for most cases. The flow Queue reliability Queue rows move through pending, processing, completed, retry, failed, and cancelled states. Rows are claimed atomically one at a time so concurrent runners cannot process the same call. A PHP process that terminates unexpectedly leaves only its active row locked; stale locks are recovered automatically and later calls continue to advance. The settings page shows queue totals grouped by AJAX/REST request and action. Failed rows can be retried, cancelled, or deleted without direct database access. Anonymized endpoint diagnostics When an endpoint request fails validation, the settings page can capture an anonymized diagnostic report. Start capture, reproduce the rejected request, and then use Copy debug report. Capture stops after the first validation failure or after ten minutes. The report includes environment and processor configuration, the validation reason, and request field names, types, and sizes. It does not include request values, cookies, URLs, domains, IP addresses, user IDs, event IDs, nonces, or authorization data. Replay processors The admin Replay Processors builder supports sanitation-only integrations. Define an AJAX action or REST route, validation policy, and allowed parameter types. QACP then validates the captured request and internally replays its original WordPress handler during queue processing. Custom PHP processors remain available when an integration needs specialized processing logic. Basic terminogoly Processor : A class/instance that is used to define the data map of fields for sanitation and later on, for batch processing. In many cases, the Processor will be quite simple. Please check the built-in Processor class "class-pys.php" under the "qacp/Processors" directory. Data Map : The map of fields and their respectable sanitation functions. There's an example in the "qacp/qacp-how-to.txt" file. REST route key : A configured REST route prefixed with "rest:", for example "rest:pys-facebook/v1/event". Things to Remember Hooks

屏幕截图:

  • More general plugin options.

更新日志:

1.1.14 1.1.13 1.1.12 1.1.11 1.1.10 1.1.9