Description

Built-in spell checker ignores cache_dir config parameter.

Current 1.9.4 code is as follows:

./action/SpellCheck.py:    cachename = os.path.join(request.cfg.data_dir, 'cache', 'spellchecker.dict')

thus bypassing attempts to redirect caches to non-default location.

If this is fixed then scope of cache needs to be thought about. Any global dict/words file could and should be cached on the farm level and local words on the instance level? Global dict/words is currently read from the source code directory (site-packages/MoinMoin/dict), it might make sense to be able to directly configure that to be something different (like /usr/dict/words) instead of having to copy dictionaries to into more protected source dir.

Steps to reproduce

  1. See code snippet above

Example

Component selection

Details

MoinMoin Version

1.9.4

OS and Version

Python Version

2.6

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/SpellCheckIgnoresCacheDirConfig (last edited 2012-08-08 10:13:42 by gw1)