traderstuart
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugin page screenshots showing short descriptionIt seems that TortoiseSVN had not uploaded the images after all. I assumed it had seeing that it was showing a tick for everything being up to date. I noticed an option to add when I right clicked on a jpg file and then after committing the changes the screenshots now appear.
Forum: Hacks
In reply to: Handling max_user_connections safelyOk, thanks that’s very helpful. Sorry one last clarification.
Does the Ajax call to the PHP script that does the DB operations count as one and the same process? Or does the Ajax call count as one and then the wpdb operation count as another one because of the MySQL operation?
If they count as 2 processes and max_user_connections is reached after the Ajax call (unlikely I know) would the PHP function simply fail to run or die gracefully because it cannot access/allocate the global wpdb?
Or have I misunderstood?
Forum: Hacks
In reply to: Handling max_user_connections safelyThanks Michael, at the moment I have the following 2 types of DB operation, that are triggered by a user clicking on a link or scrolling (after the page has loaded):
$wpdb->insert($table_name, $data); $dataId = $wpdb->insert_id;and
$wpdb->update( $table_name, ... );Can you see a problem with this?
Forum: Hacks
In reply to: Handling max_user_connections safelyI wrote the plugin myself. Other people will use it so the server hardware and bandwidth will vary depending on what they have.
That’s why I want to intercept the error so that no matter what the capabilities of the server the plugin will not cause any problems to visitors viewing pages on the site.