| 1 |
<?php |
<?php |
| 2 |
// $Id: tagadelic.module,v 1.40.2.6 2009/05/13 16:56:12 ber Exp $ |
// $Id: tagadelic.module,v 1.40.2.7 2009/09/14 20:19:47 ber Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_help |
* Implementation of hook_help |
| 210 |
*/ |
*/ |
| 211 |
function tagadelic_get_weighted_tags($vids, $steps = 6, $size = 60) { |
function tagadelic_get_weighted_tags($vids, $steps = 6, $size = 60) { |
| 212 |
// build the options so we can cache multiple versions |
// build the options so we can cache multiple versions |
| 213 |
$options = implode($vids) .'_'. $steps .'_'. $size; |
$options = implode('_',$vids) .'_'. $steps .'_'. $size; |
|
|
|
| 214 |
// Check if the cache exists |
// Check if the cache exists |
| 215 |
$cache_name = 'tagadelic_cache_'. $options; |
$cache_name = 'tagadelic_cache_'. $options; |
| 216 |
$cache = cache_get($cache_name, 'cache_page'); |
$cache = cache_get($cache_name, 'cache_page'); |