Download & Extend

Must un- and re-enable Wordfilter to apply new words

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.

AttachmentSize
wordfilter.module.482608.patch 1.29 KB

#3

Ok here is the correct patch which calls cache_clear_all().

AttachmentSize
wordfilter.module.482608.patch 1.3 KB

#4

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here