Posted by muirgein on June 5, 2009 at 3:31am
| Project: | Wordfilter |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
After adding new words to the filter list, the newly added word is not immediately filtered; no changes are made to previously-created content before display.
The only way to get the newly-added words to be filtered is to un-enable and then re-enable the Wordfilter filter in each of the Input Formats. After un- and re-enabling Wordfiler for each Input Format, all words filter as expected.
Comments
#1
Wordfilter works using the Drupal filter system. Drupal caches text that has already been filtered so it's likely that you aren't seeing the effect of new words because your content has been filtered previously and subsequent views of the content are not running filters again since the filters are cached.
You can clear your cache using the Devel module or by going to admin/settings/performance and clicking 'Clear cached data'.
However you make a valid point and what should be done in the module is to clear out the cache after words are add/modified/removed from the Wordfilter tables.
#2
Ok my text didn't get posted with the patch...anyways the patch is out of date. next post has the final patch.
#3
Ok here is the correct patch which calls cache_clear_all().
#4
fixed in CVS
http://drupal.org/cvs?commit=221132
http://drupal.org/cvs?commit=221130
#5
Automatically closed -- issue fixed for 2 weeks with no activity.