Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed May 15, 2024
1 parent 63f4c1a commit e50ed22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/pantheon-page-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function view_settings_page() {
private function get_cache_control_header_value() {
if ( ! is_admin() && ! is_user_logged_in() ) {
// Use the filtered default max-age if applicable.
$ttl = apply_filters( 'pantheon_cache_default_max_age' , absint( $this->options['default_ttl'] ) );
$ttl = apply_filters( 'pantheon_cache_default_max_age', absint( $this->options['default_ttl'] ) );
if ( $ttl < 60 && isset( $_ENV['PANTHEON_ENVIRONMENT'] ) && 'live' === $_ENV['PANTHEON_ENVIRONMENT'] ) {
$ttl = 60;
}
Expand Down

0 comments on commit e50ed22

Please sign in to comment.