Committer: ailyin
LJSUP-6614 ('objToJson' obsoleted/not found): let's not load contentsearch stuff; eventually we may need to remove it altogether, but for now, just don't load it and preserve a little bit of RAM etcU trunk/cgi-bin/LJ/Hooks/ContentSearch.pm
Modified: trunk/cgi-bin/LJ/Hooks/ContentSearch.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/ContentSearch.pm 2010-08-26 08:14:47 UTC (rev 9409) +++ trunk/cgi-bin/LJ/Hooks/ContentSearch.pm 2010-08-26 08:17:36 UTC (rev 9410) @@ -2,15 +2,17 @@ package LJ::LJcom; use strict; -use LJ::Search::Client::SixApart; -use LJ::Search::Document::SixApart; LJ::register_hook("content_search_client", sub { + require LJ::Search::Client::SixApart; + my $s = LJ::Search::Client::SixApart->new($LJ::SEARCH_SERVER); return $s; }); LJ::register_hook("content_search_document", sub { + require LJ::Search::Document::SixApart; + return LJ::Search::Document::SixApart->new(@_); });