Bill Moseley wrote:
> Anyway, I'd like to avoid the repeated queries in mod_perl, of course. So,
> in the sort term, I was thinking about caching search results (which is
> just a sorted list of file names) using a simple file-system db -- that is,
> (carefully) build file names out of the queries and writing them to some
> directory tree . Then I'd use cron to purge LRU files every so often. I
> think this approach will work fine and instead of a dbm or rdbms approach.
Always start with CPAN. Try Tie::FileLRUCache or File::Cache for
starters. A dbm would be fine too, but more trouble to purge old entries
from.
- Perrin