rapid7/metasploit-framework — pull request #1118 by todb-r7 (2012-12-01 20:20:12+00:00)
Title: Bugs/rm7553 uncached modules search

Repeat of https://github.com/rapid7/metasploit-framework/pull/1117

Sometimes, the database is active but the cache isn't filled out, or
doesn't contain the module you want. This can come up especially when
msfconsole first starts and you are programmatically searching for
modules, for whatever reason.

This allows for falling back to the regular (slow) search in the event
no hits have been returned. It does not actually address the caching
problem seen in QA, but it's generally going to be Good Enough. Search
is getting overhauled Real Soon Now anyway.

[FixRM #7553]