Commit 37db4beb authored by mikeytown2's avatar mikeytown2

Issue #2562143 by mikeytown2: Add in the ability to cache function calls and...

Issue #2562143 by mikeytown2: Add in the ability to cache function calls and regenerate cache in the background.
parent a8ff62e7
......@@ -3559,7 +3559,7 @@ function httprl_call_user_func_array_cache($callback, array $param_arr = array()
'lock_timeout' => 30.0,
);
// The cache id for this call.
$cid = __FUNCTION__ . ':' . drupal_base64_encode(serialize(array($callback, $param_arr)));
$cid = __FUNCTION__ . ':' . drupal_hash_base64(serialize(array($callback, $param_arr)));
$cache = cache_get($cid);
// Don't use the cache if it's not there or the cached item is older than
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment