Skip to content

Commit

Permalink
Dot not clean buffer too early
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Feb 22, 2024
1 parent 1590143 commit ac984cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Alley\WP\Alleyvate\Features;

use Alley\WP\Alleyvate\Feature;
use Alley\WP\Types\Feature;

/**
* Full Page Cache for 404s.
Expand Down Expand Up @@ -192,9 +192,6 @@ public static function action__wp(): void {
}

ob_start( [ self::class, 'finish_output_buffering' ] );

// Clean up the buffer.
ob_get_clean();
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/alley/wp/alleyvate/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ function load(): void {
'user_enumeration_restrictions',
new Features\User_Enumeration_Restrictions(),
),
new Feature(
'full_page_cache_404',
new Features\Full_Page_Cache_404(),
),
);

$plugin->boot();
Expand Down

0 comments on commit ac984cd

Please sign in to comment.