Paypal script download every minute
-
The plugin downloads expressCheckout.min.js and payPalplus.min.js to store it in /wp-content/uploads/woo-paypalplus/resources/js/paypal/. This is done with a weekly schedule (CronScheduler, wp_schedule_event) with a start time 1 minute in the future.
When WordPress executes the schedule for the first time after 1 minute the hook isn’t executed and the schedule is canceled. This happens because the plugin skips initialization during cron handling.
from Bootstrapper.php // Plugin doesn't work well with cron because of WooCommerce Session. // To now spread conditional here and there since we don't actually need to do stuffs // during cron I have disabled the plugin here. if (defined('DOING_CRON') && DOING_CRON) { return false; }The next time the plugin is initialized the schedule is reinitialized with an execution 1 minute into the future. This leads to an download of the Paypal scripts every minute.
Best Regards, Sebastian
The topic ‘Paypal script download every minute’ is closed to new replies.