Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9410: LJSUP-6614 ('objToJson' obsoleted/not fo...

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 etc
U   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(@_);
 });
 

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments