Site of the Day

Aviva Strongest Directories

IndexU Tips & MODs

What's Up

Blog Calendar
May 2008
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Blog Archives

Pagerank Statistics
PR 7
   
1 site(s)
PR 6
   
4 site(s)
PR 5
   
34 site(s)
PR 4
   
87 site(s)
PR 3
   
153 site(s)
PR 2
   
87 site(s)
PR 1
   
40 site(s)
PR 0
   
115 site(s)

Search Log Limiter

 Wednesday, April 2nd, 2008

Couple of months ago, one of our member having slow performance problem with their IndexU sites. After quick investigation, we found that it is caused by one of our mods : the "Popular and Latest Search" mods. The actual problem is not the mods it self, but it is because of the giant size of the search log records.

So if you're using the "Popular and Latest Search" mods in your IndexU sites, then it is recommended that you also install this "Search Log Limiter" mods. The function of this mods is simply to keep the search log size in control.

Members can download this mods for FREE here (you’ll need to login first).

Here is the installation step :

  1. Unzip and upload the search-log-limiter.zip file to the corresponding IndexU folder.
  2. Small edit to search.php script.
    Change :

    Content visible to member only. Please register and login first.

    To :

    Content visible to member only. Please register and login first.

Done.

You might want to adjust some variables to suits your need.

  • $limit_by (days or records) : Limit the search log by days or by number of records.
  • $max_days : Remove the search log records that older than specified days. (limit_by : days)
  • $max_records : Clean up will be done if the records higher than max number of records allowed. (limit_by : records)
  • $reserved_records : Number of records reserved after clean up. (limit_by : records)

That's all.
Comments and feedbacks to improve this mods are welcome.

Leave a Reply