Skip to content

Commit 9614baf

Browse files
committed
Fix 404 URLs not being removed properly
Fix an issue where 404s encountered during crawling did not cause removal of the URL from the database.
1 parent 67309dc commit 9614baf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Unreleased
22

3+
- Fix an issue where 404s encountered during crawling
4+
did not cause removal of the URL from the database.
5+
36
## 9.2.0 (2025-07-18)
47

58
- (breaking) Use PHP 8.1+ features. Although the

src/DetectedFiles.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ public static function rmUrl( string $url ): void {
242242

243243
$wpdb->delete(
244244
$table_name,
245-
[
246-
'path' => md5( $url ),
247-
]
245+
[ 'path_hash' => md5( $url ) ],
248246
);
249247
}
250248

0 commit comments

Comments
 (0)