aboutsummaryrefslogtreecommitdiff
path: root/caches/SQLiteCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'caches/SQLiteCache.php')
-rw-r--r--caches/SQLiteCache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php
index cb9f33b1..bc110928 100644
--- a/caches/SQLiteCache.php
+++ b/caches/SQLiteCache.php
@@ -41,10 +41,12 @@ class SQLiteCache implements CacheInterface
$result = $stmt->execute();
if ($result) {
$row = $result->fetchArray(\SQLITE3_ASSOC);
- $data = unserialize($row['value']);
+ $blob = $row['value'];
+ $data = unserialize($blob);
if ($data !== false) {
return $data;
}
+ Logger::error(sprintf("Failed to unserialize: '%s'", mb_substr($blob, 0, 100)));
}
return null;
}