WordPress reference
Reference for running WordPress on TurboStack: where the files live, the command-line tool, and the scheduled jobs. For setup see Deploy WordPress on TurboStack; for tuning see WordPress best practices.
File layout
Everything lives under your system user's home directory. ~ is that home directory (for example /var/www/prod/). ~/public_html is both the WordPress root and the web document root.
For ownership and permissions, see Application file layout and permissions.
Command-line reference
WordPress ships a command-line interface (CLI) called WP-CLI. Run its commands with the wp tool from ~/public_html. The common command groups are below.
Caching runs in front of WordPress with Redis and Varnish. Page-cache plugins include W3 Total Cache, WP Super Cache and LiteSpeed Cache. Clear the platform caches with the TurboStack command-line tool (tscli):
Warning
tscli redis clear and tscli varnish clear flush the whole cache. Traffic hits the origin until the cache refills. See TurboStack CLI.
Cron
WordPress schedules tasks with wp-cron, which runs only on page visits. On quiet sites jobs fire late; on busy sites they fire too often and waste PHP processes. For reliability, disable the web trigger and run a real cron that calls WP-CLI.
- Disable the web trigger in
wp-config.php:define( 'DISABLE_WP_CRON', true ); - Add a cron entry (every 5 minutes) that runs the due events:
*/5 * * * * wp cron event run --due-now --path=/var/www/prod/public_html > /dev/null 2>&1
For the multisite variant and full guidance, see WordPress best practices. To run a real cron as a persistent user service, see How to manage user system services.
Related
- Deploy WordPress on TurboStack
- WordPress best practices
- Troubleshooting WordPress
- Application file layout and permissions
- How to manage user system services