Skip to content

Commit

Permalink
Update README with additional filter bypass code
Browse files Browse the repository at this point in the history
A new filter bypass code was added to further equip the 'wp_404_caching_enabled' method. This has been done by introducing '__return_false' allowing a more systematic bypassing operation.
  • Loading branch information
attackant committed Mar 15, 2024
1 parent ac64ca3 commit 5404045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ add_filter( 'wp_404_caching_cache_time', function( $cache_time ) {
add_filter( 'wp_404_caching_stale_cache_time', function( $stale_cache_time ) {
return 2 * DAY_IN_SECONDS; // Set stale cache time to 2 days.
} );

// Programmatically bypass the cache.
add_filter( 'wp_404_caching_enabled', '__return_false' );
```

## Changelog
Expand Down

0 comments on commit 5404045

Please sign in to comment.