SearchTimeoutPrevention

Summary: What to do if a site has become so large that searches time out
Version:
Prerequisites:
Status:
Maintainer:
Categories: Searching

Question

If my site has become so large that searches time out, what can I do?

Answer

Although there are probably a lot of things you can do to get the size and weight of the site down, you can also up the time-limit available.

Add to local/config.php:

set_time_limit(50);

Notes

  • This recipe was last tested on PmWiki version: 2.0.12
  • This recipe requires at least PmWiki version: and (any other recipes)
  • This recipe, version...... was installed here the...(date)

Just a warning about set_time_limit() for users who plan to use this function (from the php manual)
This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

Dfolio November 27, 2007, at 10:15 AM

Comments

See Also

Contributors