Skip to content

Commit

Permalink
fix: Use cached values for empty readme files
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Feb 12, 2025
1 parent 99382f2 commit dd47c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function propFind(PropFind $propFind, INode $node) {
if ($file instanceof File) {
$cache = $this->cacheFactory->createDistributed('text_workspace');
$cacheKey = $file->getFileInfo()->getId() . '_' . $file->getFileInfo()->getEtag();
if ($cachedContent = $cache->get($cacheKey)) {
if (($cachedContent = $cache->get($cacheKey)) !== null) {
return $cachedContent;
}

Expand Down

0 comments on commit dd47c83

Please sign in to comment.