- Description (full wysiwyg editor)
- 说明(所见即所得的完整编辑器) li>
- Download categories
- 下载类别 li>
- Price
- 价格 li>
- Download Limit
- 下载限制 li>
- Download notes
- 下载笔记 li>
ul>
These fields are self explanatory and all fields are optional except the Media attachment field, which is required.
这些字段不言自明,除“媒体附件”字段是必填项外,所有字段都是可选的。 p>
There are two buttons on the plugin page execute and reset
插件页面上有两个按钮,执行和重置 p>
Execute
执行 h4>
Once clicked, it will send request to execute cron job immediately.
单击后,它将立即发送请求以执行cron作业。
Any errors before processing cron job (invalid nonce) will be displayed on top of the page as notice.
处理cron作业之前的任何错误(无效的nonce)将作为通知显示在页面顶部。
After Cron successfully executed, the updated job status will be displayed on top of the page as notice.
成功执行Cron后,更新的作业状态将显示在页面顶部,作为通知。 p>
Reset
重置 h4>
This button is important when you want to run the cron job again and clear out the previous pending/completed job.
当您要再次运行cron作业并清除先前的挂起/已完成的作业时,此按钮很重要。
The reset button will only be clickable when any previous job was scheduled.
只有计划了任何先前的作业时,重置按钮才可以单击。
When you Reset the previous job, it’s status entries (total/processed/status) will be removed (not the downloads that’s been created), which is used to track running job.
重置上一个作业时,其状态条目(总计/已处理/状态)将被删除(而不是已创建的下载文件),用于跟踪正在运行的作业。
This allows to schedule new job when clicked on Execute
单击执行
可以安排新作业
Note: When you Execute after Reset, the previous download posts will be preserved and the next Execute will just create new downloads.
注意:重置后执行时,将保留以前的下载帖子,而下次执行时将仅创建新下载。 p>
Polling
投票 h4>
On Frontend ajax polls every 2 seconds to find out the job status and update message on top of the page.
在前端,ajax每2秒轮询一次,以查找作业状态并更新页面顶部的消息。
Polling will only runs when job is running.
轮询仅在作业运行时运行。 p>
Cron Job
Cron Job h4>
The job runs immediately on successful request from frontend.
作业在前端成功请求后立即运行。
The job keep track of the following field/values to resume or notify job status in frontend.
作业跟踪以下字段/值,以恢复或通知前端的作业状态。 p>
Status: completed/progress
状态 strong>:已完成/正在进行 p>Processed: number of images has been processed
已处理 strong>:已处理的图像数量 p>Remaining: number of images remains to be processed
剩余 strong>:需要处理的图像数量 p>Total: total number of media library image items (jpg,png,gif)
总数 strong>:媒体库图像项的总数(jpg,png,gif)
The processed field is main key here to remember.
这里要记住的是已处理字段。
As this required for resume and next batch of images to process.
这是恢复和下一批图像处理所必需的。
The cron executes first 10 images from the media library and then pause for 1 second.
cron首先从媒体库执行10张图像,然后暂停1秒。
(This prevents load on server) and the processed field is updated with image offset i.e. from 0 to 10. So on next iteration it will remember where to continueesume from.
(这可以防止服务器上的负载),并且处理后的字段会使用图片偏移量(即从0到10)进行更新。因此,在下一次迭代时,它会记住从哪里继续/恢复。 p>
Note: When site admin upload images to media library while job is running, it will update the total count the images on Media library and processed the new uploaded images as well.
注意 strong>:当站点管理员在作业运行时将图像上传到媒体库时,它将更新媒体库中图像的总数并处理新上传的图像。
If no images are found on given (total number of processed) offset, it will be assumed that the job is completed, because there are no more images found for further operation.
如果在给定的(已处理的总数)偏移量下未找到图像,则将假定作业已完成,因为找不到更多图像可用于进一步操作。
(Status will be updated on frontend)
(状态将在前端更新) p>
Logs
日志 h4>
- Log file is located in wp-content/cmedd_cron/cmedd.log
- 日志文件位于wp-content / cmedd_cron / cmedd.log li>
ul>