diff --git a/includes/class-hvac-geocoding-ajax.php b/includes/class-hvac-geocoding-ajax.php index 6dc6061a..952a0924 100644 --- a/includes/class-hvac-geocoding-ajax.php +++ b/includes/class-hvac-geocoding-ajax.php @@ -64,8 +64,8 @@ class HVAC_Geocoding_Ajax { } try { - // Set execution time limit - set_time_limit(300); // 5 minutes + // Note: Removed set_time_limit to prevent resource exhaustion + // Large geocoding operations should use background processing instead $results = $this->execute_geocoding(); @@ -132,8 +132,8 @@ class HVAC_Geocoding_Ajax { } try { - // Set execution time limit - set_time_limit(300); // 5 minutes + // Note: Removed set_time_limit to prevent resource exhaustion + // Large operations should use background processing instead $results = $this->execute_csv_remigration(); @@ -185,8 +185,8 @@ class HVAC_Geocoding_Ajax { } try { - // Set execution time limit - set_time_limit(300); // 5 minutes + // Note: Removed set_time_limit to prevent resource exhaustion + // Large operations should use background processing instead // Include the enhanced CSV import class require_once plugin_dir_path(__FILE__) . 'enhanced-csv-import-from-file.php'; diff --git a/includes/class-hvac-logger.php b/includes/class-hvac-logger.php index fa5bcd68..647d184c 100644 --- a/includes/class-hvac-logger.php +++ b/includes/class-hvac-logger.php @@ -59,8 +59,8 @@ class HVAC_Logger { // Check for plugin-specific debug option $plugin_debug = get_option( 'hvac_ce_debug_mode', false ); - // Check for query parameter (for temporary debugging) - if ( isset( $_GET['hvac_debug'] ) && wp_verify_nonce( $_GET['hvac_debug'], 'hvac_debug_nonce' ) ) { + // Check for query parameter (for temporary debugging) - admin only + if ( isset( $_GET['hvac_debug'] ) && wp_verify_nonce( $_GET['hvac_debug'], 'hvac_debug_nonce' ) && current_user_can( 'manage_options' ) ) { return true; }