Skip to content

Commit

Permalink
fix(cache): bug in prior refactor (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Jul 9, 2023
1 parent dfe78fb commit c9a861e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ function getSimpleHTMLDOMCached(
$opts ?? []
);
if ($content) {
$cache->setScope('pages');
$cache->setKey([$url]);
$cache->saveData($content);
}
}
Expand Down

0 comments on commit c9a861e

Please sign in to comment.