Preload in batches?
-
Hi WP Super Cache Support
As I understand it, the posts should be processed in batches during preloading (WPSC_PRELOAD_POST_COUNT = 10). So to speak batches of 10 by default. Then wait 1 second and do the next batch.
In wp-cache.php:
$rows = array_splice( $details, 0, WPSC_PRELOAD_POST_COUNT );
foreach ( (array) $rows as $url ) {
sleep( WPSC_PRELOAD_POST_INTERVAL );Something doesn’t add up. It only preloads 10 and then the preload stops. I have noticed this particularly with WooCommerce products. It works on some sites but not on others. I could increase the value of WPSC_PRELOAD_POST_COUNT to 1000. But is that really the right thing to do? Or am I misunderstanding something?
Or does it matter whether I start it manually or run it via the garbage collector/refresh policy?
Can you take another look at this function in more detail?
The topic ‘Preload in batches?’ is closed to new replies.