Making WordPress.org


Ignore:
Timestamp:
01/05/2021 08:11:37 PM (5 years ago)
Author:
iandunn
Message:

Events: Use HOUR_IN_SECONDS constant for readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r10549 r10550  
    6363
    6464    $cache_group   = 'events';
    65     $cache_life    = 12 * 60 * 60;
    66     $ttl           = 12 * 60 * 60; // Time the client should cache the document.
     65    $cache_life    = 12 * HOUR_IN_SECONDS;
     66    $ttl           = 12 * HOUR_IN_SECONDS; // Time the client should cache the document.
    6767    $location_args = parse_request();
    6868    $location      = get_location( $location_args );
Note: See TracChangeset for help on using the changeset viewer.