Commit 2809eb26 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #435 from cviebrock/develop

Fix for Issue #433
parents bb2f4583 1d5ad489
...@@ -41,7 +41,7 @@ class APC extends Driver { ...@@ -41,7 +41,7 @@ class APC extends Driver {
{ {
if (($cache = apc_fetch($this->key.$key)) !== false) if (($cache = apc_fetch($this->key.$key)) !== false)
{ {
return $cache; return unserialize($cache);
} }
} }
...@@ -60,7 +60,7 @@ class APC extends Driver { ...@@ -60,7 +60,7 @@ class APC extends Driver {
*/ */
public function put($key, $value, $minutes) public function put($key, $value, $minutes)
{ {
apc_store($this->key.$key, $value, $minutes * 60); apc_store($this->key.$key, serialize($value), $minutes * 60);
} }
/** /**
......
...@@ -49,7 +49,7 @@ class Memcached extends Driver { ...@@ -49,7 +49,7 @@ class Memcached extends Driver {
{ {
if (($cache = $this->memcache->get($this->key.$key)) !== false) if (($cache = $this->memcache->get($this->key.$key)) !== false)
{ {
return $cache; return unserialize($cache);
} }
} }
...@@ -68,7 +68,7 @@ class Memcached extends Driver { ...@@ -68,7 +68,7 @@ class Memcached extends Driver {
*/ */
public function put($key, $value, $minutes) public function put($key, $value, $minutes)
{ {
$this->memcache->set($this->key.$key, $value, 0, $minutes * 60); $this->memcache->set($this->key.$key, serialize($value), 0, $minutes * 60);
} }
/** /**
......
...@@ -588,4 +588,4 @@ class Form { ...@@ -588,4 +588,4 @@ class Form {
throw new \Exception("Method [$method] does not exist."); throw new \Exception("Method [$method] does not exist.");
} }
} }
\ No newline at end of file
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