Drupal Planet

DrupalCon Asia-Pacific Organizers Invite You to Participate

We are excited to announce the DrupalCon Asia-Pacific Organisers group. DCAPO intends to lay foundations that will facilitate international Drupal Conferences (DrupalCons) in the Asia-Pacific region.

Conservation Strategy Fund Uses Drupal

Conservation Strategy Fund (CSF) recently launched their new Drupal website and the HydroCalculator Tool, both by CivicActions.  CSF's mission is to teach environmental organizations around the world to use economics and strategic analysis to conserve nature.  Their new website empowers them to do this with multi-lingual features, news streams and feeds, listings that can be filtered by continent, region, country or theme, t

Hook_world_alter() T-shirt Design

hook_world_alter() T-shirt designThis hook_world_alter() T-shirt idea was something Trevor Twining came up with way back at DrupalCon DC.  I got a single T-shirt made for DrupalCon Paris.  A number of people said they wanted one – though since I'm not interested in the business of making T-shirts, I thought I

I am seeking Drupal development contract work

Photo of Bevan Rudge working at his laptop in a full pew at a code sprint
Contributing to Drupal at DrupalCon Boston March 2008. Photo by Steve Krueger.

I am currently available for Drupal development contract work.

I am interested in contracts or projects of any width, height or length. I am especially interested in projects that (roughly in order);

  • are socially conscious
  • have other talented and experienced Drupal developers to work and grow with
  • compensate at reasonable-to-good rates

DrupalSouth Wellington NZ January 2010

DrupalSouth logo: The DrupliKiwiFruitFollowing in the success of DrupalSouth Christchurch November 2008, DrupalSouth Wellington January 2010 is in it's planning stages.

CivicActions In Paris!

CivicActions Logo: EmpoweredCivicActions is in Paris, and we are running some great sessions at DrupalCon Paris 2009;

Photo of Gregory Heller smiling in a CivicActions Empowered T-shirt We won't be at the job fair this year, but please hunt us down at the conference (we'll be wearing CivicActions t-shirts) if you're looking for work or want to join a first-class international and virtual team of world-changing Drupal developers. You can also contact us through the website for more info or if you want to make sure you don't miss us.

Drupal Gotchya: Cache_get() Returns Expired Items

cache_get() returns $cache objects even if the cached item is stale (expired). The cached data will not be rebuilt every hour in the following example:

<?php
/**
* Builds complicated data for the monkey grip.
*/
function custom_monkey_grip_data() {
 
// Return the cached data
 
$cache = cache_get('custom:monkey_grip');
  if (!
$cache) {
   
// Some expensive processing to build the data.
   
$data = complicated_recursion_and_loops_on_lots_of_data();
   
   
// Cache the data and rebuild it every hour
   
$expire = time() + (60 * 60);
   
cache_set('custom:monkey_grip', $data, 'cache', $expire);
  }
  else {
   
$data = $cache->data;
  }
  return
$data;
}
?>

read more

Syndicate content