LJ::get_posts_raw

LJ::get_posts_raw — Gets raw post data (text and props) efficiently from clusters.

Use

LJ::get_posts_raw(opts, id);

Arguments

  • opts. An optional hashref of options: - memcache_only: Don't fall back on the database. - text_only: Retrieve only text, no props (used to support old API). - prop_only: Retrieve only props, no text (used to support old API).

  • id. An arrayref of [ clusterid, ownerid, itemid ].

Info

Fetches posts from clusters, trying memcache and slaves first if available.

Source:

cgi-bin/LJ/Entry.pm

Returns:

hashref with keys 'text', 'prop', or 'replycount', and values being hashrefs with keys "jid:jitemid". values of that are as follows: text: [ $subject, $body ], props: { ... }, and replycount: scalar