bobbingwide / oik-batch

Batch interface to WordPress
https://www.oik-plugins.com/oik-plugins/oik-batch
GNU General Public License v2.0
0 stars 0 forks source link

Support createapi2 running locally #4

Open bobbingwide opened 8 years ago

bobbingwide commented 8 years ago

Currently createapi2.php runs as a client, passing each request to a remote server. If the target server happens to be the same as the current server then it should be able to work directly. This should be faster.

There is a paired issue in oik-shortcodes. https://github.com/bobbingwide/oik-shortcodes/issues/17

bobbingwide commented 8 years ago

When running locally we have to be wary of plugins that make calls to set_timer_limit(). Usually these plugins believe that they're extended the time limit. But when running PHP in a Command Line Interface (CLI) the default is for max_execution_time to be set to 0 - meaning unlimited. Calls to set_timer_limit() should therefore not be performed.

bobbingwide commented 8 years ago

This will be closed when oik-shortcodes has also been updated.