Quote from Alex Dovlatov on February 12, 2026, 13:56
Hello Sandor
I've identified the issue. The problem occurs because:
1. File clearing before write: The turbo file is truncated (cleared) before new data is written. If PHP execution time limit is exceeded during the write operation, the file remains empty. But this is ok, problem is another thing
2. WordPress Cron limitations: WP Cron isn't reliable for long-running tasks and may not execute if no one visits the site.
Recommended solution - Use server-side cron:
Step 1: Disable WordPress cron in `wp-config.php`:
define('DISABLE_WP_CRON', true);
Step 2: Add to server crontab (runs daily at 3 AM):
0 3 * * * php /path/to/your/site/wp-cron.php >/dev/null 2>&1
Or using wget:
0 3 * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Step 3: Increase PHP execution time in turbo mode callback
Alternative - Increase PHP limits:
Add to wp-config.php:
@ini_set('max_execution_time', 300); // 5 minutes
@ini_set('memory_limit', '512M');
This ensures cron has enough time to complete the turbo file generation. Please try server-side cron first - it's the most reliable solution for production sites.
Hello Sandor
I've identified the issue. The problem occurs because:
1. File clearing before write: The turbo file is truncated (cleared) before new data is written. If PHP execution time limit is exceeded during the write operation, the file remains empty. But this is ok, problem is another thing
2. WordPress Cron limitations: WP Cron isn't reliable for long-running tasks and may not execute if no one visits the site.
Recommended solution - Use server-side cron:
Step 1: Disable WordPress cron in `wp-config.php`:
define('DISABLE_WP_CRON', true);
Step 2: Add to server crontab (runs daily at 3 AM):
0 3 * * * php /path/to/your/site/wp-cron.php >/dev/null 2>&1
Or using wget:
0 3 * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Step 3: Increase PHP execution time in turbo mode callback
Alternative - Increase PHP limits:
Add to wp-config.php:
@ini_set('max_execution_time', 300); // 5 minutes
@ini_set('memory_limit', '512M');
This ensures cron has enough time to complete the turbo file generation. Please try server-side cron first - it's the most reliable solution for production sites.