simply_static_taskname_batch_size
How to use: add_filter()
Included in: Simply Static Core/Free 3.2.0+
Overview
The simply_static_taskname_batch_size filter allows you to modify the batch size for each task implemented in Simply Static. Replace "task name" with the task slug you want to change.
Here are a couple of examples of tasks in Simply Static:
- setup
- fetch_urls
- search
- minify
- github_commit
- aws_deploy
Example
The following code snippet increases the batch size of URLs to fetch during the fetch_urls task.
add_filter('simply_static_fetch_urls_batch_size', function( $batch_size ) { return 500; // default is 50. });