Search Log Limiter
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 :
- Unzip and upload the search-log-limiter.zip file to the corresponding IndexU folder.
- Small edit to search.php script.
Change :To :
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.








