Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2016 12:55:49 PM (4 years ago)
Author:
djpaul
Message:

Fix inaccurate timestamps caused by page caching.

If any template with a timestamp is statically cached, then the timestamps quickly become inaccurate.
The change adds livestamp.js and moment.js to dynamically update timestamps with the real relative time.

A consequence is that the labels surrounding the timestamps, notably in our widgets, have slightly changed.
We're going to keep an eye on this for the remainder of the 2.7 development cycle, and may make further adjustments as testing proves necessary.

Fixes #5757

Props r-a-y, imath, DJPaul

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-admin.php

    r10953 r11008  
    869869                <a href="https://bbpress.org">bbPress</a>,
    870870                <a href="https://github.com/ichord/Caret.js">Caret.js</a>,
    871                 <a href="http://tedgoas.github.io/Cerberus/">Cerberus</a>,
    872                 <a href="http://ionicons.com/">Ionicons</a>,
     871                <a href="https://tedgoas.github.io/Cerberus/">Cerberus</a>,
     872                <a href="https://ionicons.com/">Ionicons</a>,
    873873                <a href="https://github.com/carhartl/jquery-cookie">jquery.cookie</a>,
     874                <a href="https://mattbradley.github.io/livestampjs/">Livestamp.js</a>,
    874875                <a href="https://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a>,
     876                <a href="http://momentjs.com/">Moment.js</a>,
    875877                <a href="https://wordpress.org">WordPress</a>.
    876878            </p>
Note: See TracChangeset for help on using the changeset viewer.