Skip to content
Snippets Groups Projects
Commit 13b8a24f authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #401 from EreMaijala/voyager-restful-cache-fix

Fixed caching in VoyagerRestful.
parents cd2fb177 f1309fc3
No related merge requests found
......@@ -335,9 +335,10 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte
{
if (isset($this->session->cache[$id])) {
$item = $this->session->cache[$id];
if (time() - $item['time'] > 30) {
if (time() - $item['time'] < 30) {
return $item['entry'];
}
unset($this->session->cache[$id]);
}
return null;
}
......
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