Handling max_user_connections safely
-
I have a WP plugin that records user activity to the DB.
I am aware that if the plugin is used on a very heavily trafficked site that max_user_connections errors from an Apache server may still happen regardless of optimizations or how high the limit has been set. What I want to ensure is that the page the user is viewing does not freeze or the browser crash if a max_user_connections error occurs.
WordPress uses a class called wpdb to interface to the DB. When using $wpdb->insert or $wpdb->update what happens if a max_user_connections error occurs?
Will these functions return the standard return error of FALSE or will the PHP code “hang” causing a page freeze or browser crash? Does anything special need to be done to prevent any problems?
- The topic ‘Handling max_user_connections safely’ is closed to new replies.