New Podcast

Posted Tuesday, July 27 at 2:29 pm

Ryan Price and Mike Anello recently talked with Jacob Redding (jredding), author of Beginning Drupal as well Treasurer and Interim General Manager of the Drupal Association.

Download Podcast 41
DrupalEasy_ep41_20100727.mp3
Syndicate content

NEWSLETTER

Stay informed on our latest news!

Syndicate content

Testimonial

The DrupalEasy workshop provided a balance between "Best Practices" for Drupal development and an elegant example of integrating content from Youtube , Flickr, etc. using the FeedAPI. The workshop provided useful insights in advanced site design and a wealth of resources to speed up development and make deployment safer.

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

Clear Cache Before Updating Modules

Whenever it's time for you to upgrade modules on your site, you should have a checklist of the steps involved. One step I've recently added to my checklist is to clear the site cache just prior to uploading the updated module files.

I learned this lesson with a recent Views upgrade. While working on my dev server (#1 on my list!) I found that if I didn't clear the cache prior to installing the updated Views module, I was faced with the dreaded White Screen of Death (WSOD to those of us familiar with it). After a few minutes of my time in the Views issue queue, I found other people with a similar issue and the result was consistently some type of cache-clearing activity. Once I reinstalled the old versions, I cleared the cache, reinstalled the new versions and all was great.

For the record, here's my module upgrade checklist:

  1. Perform the upgrade first on a machine other than your live server
  2. Login as User 1
  3. Backup the database and files on your live server (I use the Backup and Migrate module for the database backup)
  4. Put site into maintenance mode (admin/settings/site-maintenance)
  5. Clear the cache (either from admin/settings/performance or via the Admin Menu.
  6. Delete the modules you're going to upgrade (don't just overwrite them with the new modules, delete them first).
  7. Upload the new modules
  8. Go to the admin/reports/update page to verify the new modules are installed
  9. Go to update.php and run any database updates
  10. Go to the admin/reports/status page to make sure you're all green-checkmark happy
  11. Test your site
  12. Take your site out of maintenance mode.

Did I miss anything? Do you have any additional steps in your module upgrade checklist?

Trackback URL for this post:

http://drupaleasy.com/trackback/146
No votes yet

1 comment

Guest wrote 1 year 6 weeks ago

Haven't ran into that

That's not a problem I've ran into, but good info to have.

I keep all of my sites (and clients' sites) in SVN and have found that occasionally I have to remove all of the files from the local working copy before updating modules to catch files that are removed or renamed.

Syndicate content