Fork me on GitHub
Subscribe 2

Ticket #282 (fixed enhancement)

Automatically regenerate the stopwords cache when required

  • Created: 2011-02-08 11:11:23
  • Reported by: Reines
  • Assigned to: Reines
  • Milestone: 1.4.5
  • Component: caching
  • Priority: normal

Can we automatically regenerate the stopwords cache when required somehow? I get the feeling a lot of people will overlook the need to regenerate it when installing/modifying language packs.


Franz 2011-02-08 12:20:14

Checking with something like the last modification date?

Reines 2011-02-08 12:22:47

  • Owner set to Reines.
  • Status changed from open to fixed.

I've actually just done that tongue

Franz 2011-02-08 12:26:37

Does this get called on every single page load? If so, what is the performance hit?

Reines 2011-02-08 12:36:37

No - it gets called whenever the search indexer is used - so when searching or posting.

For 1 language installed, the performance should still be better than before we added stopword caching. For multiple languages we are now checking the modified time of multiple files, but it still beats reading in the words from multiple files and merging them every time.

Franz 2011-02-08 13:17:24

Makes sense. Thanks.