Performance Optimization

PHP Memory Limit

Crucible Scan recommends 256 MB of PHP memory for large scans (100+ pages). You can check your current limit in Tools → Site Health → Info → Server. If your limit is lower, contact your hosting provider or add define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php.

Scanning in Batches

For sites with 500+ pages, consider scanning in batches of 50 to 100 pages at a time. This reduces memory usage and avoids server timeout issues. Focus each batch on a specific section or content type.

Server Timeout Settings

Each page scan is a separate AJAX request, so PHP’s max_execution_time applies per-page rather than per-scan. A setting of 30 seconds (the default on most hosts) is sufficient. If individual pages are very large (50,000+ characters of HTML), consider increasing to 60 seconds.

Cron Reliability for Scheduled Scans

WordPress cron depends on site visits to trigger. For reliable scheduled scans, set up a system cron job:

*/15 * * * * wget -q -O /dev/null https://yoursite.com/wp-cron.php?doing_wp_cron

Then disable WordPress’s built-in cron by adding to wp-config.php:

define('DISABLE_WP_CRON', true);

Object Caching

Crucible Scan is compatible with object caching plugins (Redis, Memcached). Scan results are stored in custom database tables, not in the object cache, so caching plugins do not interfere with scan operations.