Speedup Drupal 6 ... turn off Update Status

It turns out that the Update module that comes with Drupal runs some pretty hefty queries. While trying to debug a crazy mysql error we were seeing on one of the sites I work on (http://drupal.org/node/361563) it occured to me that there is no reason why we should have the update module enabled on our production site at all.

Turning it off on production (while leaving it on on staging) gave the site a nice litte pick-me-up especially after clearing the cache.

Read on

Debugging Memory Problems During Cron Run

Recently my cron stopped running completely and when I would manually visit mysite.com/cron.php I'd get a message like this:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in ...

So how do I debug this? I went to module.inc then added a bit of code to module_invoke_all();

Read on

Customizing Drupal Forms: What I just learned

I've been working on a project that required some pretty heavy-duty customizations to how the user registration form looks and while getting everything to work I learned a few things that have changed the way I look at customizing forms in Drupal. Here is a quick summary of what I already new, and what I know now.

Read on

Drush is my friend

Drush (Drupal + Shell) is a set of scripts that lets you control your Drupal site directly from the command line. Without every touching your mouse you can clear the cache, do an SQL Dump ,and even download and enable modules directly from drupal.org. 

Since inserting Drush into my workflow I've saved hours of downloading modules and adding them into my svn repositories (drush dl); grabbing top-level information about my sites (drush st); and even running some quick code snippits (drush eval).

Sooo good.

Read on

Drupal Modules: PathAuto

PathAuto is an elegantly simple module. It lets you create automated alias rules so that your URLs remain relevant and seo friendly based on node types. For example, on this site I have pathauto setup to create a /blog/title-of-post. More correctly I have pathauto setup to create /blog/title_post by using its built in mechanism for omitting certain words from the automated URL alias.

Read on

Managing and deploying Drupal sites using SVN & MAMP

It's simple: Drupal + SVN = happy web developer.

This is the story of how I generally structure my Drupal based sites using Subversion (SVN) to make development, versioning and deployment easy and well-organized. A quick note: this post assumes that you already know the nitty gritty of how to use SVN and the basic setup and structure of a Drupal-based site.

Read on

Pages