Skip to content

Commit

Permalink
restructre command class
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jan 31, 2025
1 parent c30bda4 commit 54cc989
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 109 deletions.
6 changes: 3 additions & 3 deletions core/DataAccess/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ public function updateArchiveAsInvalidated(
}
} else {
if (null === $segment) {
$nameCondition = "name LIKE '$doneFlag%.$plugin'"; // invalidate all segments
$nameCondition = "name LIKE '$doneFlag%.$plugin'"; // invalidate all segments for specific plugin
} else {
$nameCondition = "name = '$doneFlag.$plugin'"; // invalidate specific segment only
$nameCondition = "name = '$doneFlag.$plugin'"; // invalidate specific segment for specific plugin only
}
}

Expand Down Expand Up @@ -208,7 +208,7 @@ public function updateArchiveAsInvalidated(
}
}

if (true === $doNotCreateInvalidations) {
if ($doNotCreateInvalidations) {
return count($idArchives);
}

Expand Down
Loading

0 comments on commit 54cc989

Please sign in to comment.