WordPress.org

Making WordPress.org

Changeset 4508


Ignore:
Timestamp:
12/09/2016 08:38:45 AM (3 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org/bbPress.org: Remove support for non-SSL front-page transient cache keys.

  • Address issue where front page caches weren't busting on new topics/replies
  • Reduce cache duration to 5 minutes, to keep freshness fresh (can likely be made longer again later)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php

    r4101 r4508  
    363363
    364364    // Transient settings
    365     $expiration    = HOUR_IN_SECONDS;
    366     $transient_key = 'bb_base_homepage_topics' . ( is_ssl() ? '_ssl' : '' );
     365    $expiration    = MINUTE_IN_SECONDS * 5;
     366    $transient_key = 'bb_base_homepage_topics';
    367367    $output        = get_transient( $transient_key );
    368368
     
    428428 */
    429429function bb_base_get_support_topics() {
     430
    430431    // Transient settings
    431     $expiration    = HOUR_IN_SECONDS;
    432     $transient_key = 'bb_base_support_topics' . ( is_ssl() ? '_ssl' : '' );
     432    $expiration    = MINUTE_IN_SECONDS * 5;
     433    $transient_key = 'bb_base_support_topics';
    433434    $output        = get_transient( $transient_key );
    434435
Note: See TracChangeset for help on using the changeset viewer.