Skip to content

Commit a567522

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Use cached values for empty readme files
Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent 5806027 commit a567522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DAV/WorkspacePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function propFind(PropFind $propFind, INode $node) {
9191
if ($file instanceof File) {
9292
$cache = $this->cacheFactory->createDistributed('text_workspace');
9393
$cacheKey = $file->getFileInfo()->getId() . '_' . $file->getFileInfo()->getEtag();
94-
if ($cachedContent = $cache->get($cacheKey)) {
94+
if (($cachedContent = $cache->get($cacheKey)) !== null) {
9595
return $cachedContent;
9696
}
9797

0 commit comments

Comments
 (0)