Skip to content

Instantly share code, notes, and snippets.

@joshtronic
Created September 15, 2013 20:54
Show Gist options
  • Save joshtronic/6574257 to your computer and use it in GitHub Desktop.
Save joshtronic/6574257 to your computer and use it in GitHub Desktop.
<?php
$conditions = array('conditions' => array('revision_id' => $recipe_revision->record['id']));
$cache_key = 'RECIPE-' . $recipe_revision->record['id'] . '-';
$recipe_ingredient = new RecipeIngredient($conditions, $cache_key . 'INGREDIENTS');
$recipe_direction = new RecipeDirection($conditions, $cache_key . 'DIRECTIONS');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment