»

LJ::get_logtext2

LJ::get_logtext2 — Efficiently retrieves a large number of journal entry text, trying first slave database servers for recent items, then the master in cases of old items the slaves have already disposed of. See also: LJ::get_talktext2.

Use

LJ::get_logtext2(u, opts, jitemid);

Arguments

  • u. A hashref of a row from the user table, sometimes called a "user object". Although only initially a row from the user table, gets a lot of tacked onto it from various other LJ API functions.

  • opts. Optional hashref of special options. Currently only 'usemaster' key is supported, which always returns a definitive copy, and not from a cache or slave database.

  • jitemid. List of jitemids to retrieve the subject & text for.

Source:

cgi-bin/ljlib.pl

Returns:

hashref with keys being jitemids, values being [ $subject, $body ]