Verified Commit 0bde7162 authored by Dave Long's avatar Dave Long
Browse files

Issue #3376927 by catch, lauriii, longwave: Remove even more of the aggregate...

Issue #3376927 by catch, lauriii, longwave: Remove even more of the aggregate stale file threshold and state entry
parent 5d76517a
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -195,11 +195,7 @@ public function deliver(Request $request, string $file_name) {
    // from filling the disk, while still serving aggregates that may be
    // referenced in cached HTML.
    if (hash_equals($generated_hash, $received_hash)) {
      $uri = $this->dumper->dumpToUri($data, $this->assetType, $uri);
      $state_key = 'drupal_' . $this->assetType . '_cache_files';
      $files = $this->state()->get($state_key, []);
      $files[] = $uri;
      $this->state()->set($state_key, $files);
      $this->dumper->dumpToUri($data, $this->assetType, $uri);
    }
    return new Response($data, 200, [
      'Cache-control' => static::CACHE_CONTROL,