aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/CacheEntry.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-05-04 19:06:02 +0200
committerRobin Appelman <robin@icewind.nl>2021-06-14 16:11:22 +0200
commite198dc1b200f3ade93498e0ea7b468c87d46748a (patch)
tree235c30d6035bec46bef5ee2f2b134333dfb65409 /lib/private/Files/Cache/CacheEntry.php
parentdfbac05f7ba00c78ac15df61a425317a890b08d1 (diff)
downloadnextcloud-server-e198dc1b200f3ade93498e0ea7b468c87d46748a.tar.gz
nextcloud-server-e198dc1b200f3ade93498e0ea7b468c87d46748a.zip
rework search api to allow searching on multiple caches at once
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/CacheEntry.php')
-rw-r--r--lib/private/Files/Cache/CacheEntry.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index bdefddab00a..156f075c2d0 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -124,4 +124,8 @@ class CacheEntry implements ICacheEntry {
public function getData() {
return $this->data;
}
+
+ public function __clone() {
+ $this->data = array_merge([], $this->data);
+ }
}