aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Cache.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Cache.php b/Zotlabs/Lib/Cache.php
index 35c8f56ad..f211269be 100644
--- a/Zotlabs/Lib/Cache.php
+++ b/Zotlabs/Lib/Cache.php
@@ -8,6 +8,9 @@ namespace Zotlabs\Lib;
class Cache {
public static function get($key) {
+
+ $key = substr($key,0,254);
+
$r = q("SELECT v FROM cache WHERE k = '%s' limit 1",
dbesc($key)
);
@@ -19,6 +22,8 @@ class Cache {
public static function set($key,$value) {
+ $key = substr($key,0,254);
+
$r = q("SELECT * FROM cache WHERE k = '%s' limit 1",
dbesc($key)
);