Skip to content

Commit

Permalink
Need to include the username in the cache key.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 22, 2013
1 parent 064d893 commit baaa690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timeobjects/lib/Driver/FacebookEvents.php
Expand Up @@ -46,7 +46,7 @@ public function listTimeObjects(Horde_Date $start = null, Horde_Date $time = nul
throw new TimeObjects_Exception($e->getMessage());
}
$cache = $GLOBALS['injector']->getInstance('Horde_Cache');
$key = 'timeobjects.facebook|' . (string)$start . '|' . (string)$time;
$key = 'timeobjects.facebook|' . $GLOBALS['registry']->getAuth() . '|' . (string)$start . '|' . (string)$time;
if ($data = $cache->get($key, 3600)) {
return json_decode($data, true);
}
Expand Down

0 comments on commit baaa690

Please sign in to comment.