My Drupal Modules
Submitted by dmuth on Sat, 2006-02-11 17:03.
Tags:
This page contains any Drupal modules that I have written.
- Sanity module - This module is used to check some basic settings in your Drupal installation such as crontab frequency, number of nodes indexed per crontab, and node size, and will warn you if there is anything that may cause performance issues. (It can also be found on the Drupal website at http://drupal.org/project/sanity)
This is still a module in early phases of development, and suggestions are welcome!
- Poormanscron with race condition fix - The poormanscron module is an awesome module that executes crontabs at automatic intervals based on when pages are loaded. Unfortunately, there is a nasty race condition in the code, as documented at http://drupal.org/node/43511.
That being the case, I set out to patch my copy of poormanscron, but it ended up turning into more than a simple patch, because I found it necessary to refactor the poormanscron_exit() function. So I put it on this page instead.
The fixed version of poormanscron does the following:
- Uses MySQL's GET_LOCK() function to prevent the race condition
- Logs how long it took the entire crontab to execute. Helpful for debugging.
- Logs individual calls to various modules' cron hooks, so modules that use excessive CPU time can be discovered.










