[buddypress-trac] [BuddyPress Trac] #5757: Add a "data-timestamp" attribute to all templates requiring timestamps

buddypress-trac noreply at wordpress.org
Wed Jul 16 20:24:18 UTC 2014


#5757: Add a "data-timestamp" attribute to all templates requiring timestamps
-------------------------+-----------------
 Reporter:  r-a-y        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  2.2
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------
 This is kind of tied to the widget caching ticket - #3659.

 Before we can even think about fragment caching, there are some issues to
 overcome.

 One of them is caching any BP loop that has a timestamp inside the loop
 (eg. "active X minutes ago").  If the loop is cached, then the timestamp
 is also cached and will not be reflective of the real timestamp.

 To remedy this, I plan on introducing a "data-timestamp" attribute to our
 BP loop functions / templates where appropriate.  Then, it would be
 possible with JS (perhaps using [http://timeago.yarp.com/ jQuery timeago])
 to dynamically swap out the cached timestamp with the real relative time.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5757>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list