Skip to content

Commit

Permalink
Revert deleting expired URIs immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 27, 2024
1 parent cc9b38b commit 244fae9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/services/RefreshCacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
use putyourlightson\blitz\jobs\RefreshCacheJob;
use putyourlightson\blitz\models\RefreshDataModel;
use putyourlightson\blitz\models\SiteUriModel;
use putyourlightson\blitz\records\CacheRecord;
use putyourlightson\blitz\records\ElementExpiryDateRecord;
use putyourlightson\blitz\records\SsiIncludeCacheRecord;
use yii\db\ActiveQuery;
Expand Down Expand Up @@ -456,9 +455,6 @@ public function refreshExpiredSiteUri(SiteUriModel $siteUri): void
return;
}

// Delete the cache record now, as it may not be deleted later.
CacheRecord::deleteAll(['id' => $cacheId]);

$this->addCacheIds([$cacheId]);

// Forcibly generate the cache if it will not be cleared.
Expand Down

0 comments on commit 244fae9

Please sign in to comment.