By davidblewett on
Hi All:
I'm developing a filter module, and I can't get it to apply to all output. It appears to only apply to items as they are entered. If I make a change in the module, it won't show up in existing items but will when I enter new ones. Is this the way the system is supposed to work, or is there a way to filter all output?
Comments
Filter cache
It sounds like you're running into the filter cache. Each time you've made a change to your module, either run the following SQL statement:
DELETE FROM cacheor, go to the filter administration and save the settings there.
Or, you can set your filter module to "nocache" (see the http://drupaldocs.org/hook_filter documentation), but don't forget to remove it when you release your module as this would otherwise degrade performance.
--
If you have a problem, please search before posting a question.
That Helps
That did help. However, I can't get "nocache" to work. In the documentation the option is "no cache". In the filter_example.module, all that was done was return TRUE;. I did that, but I still only see changes when I flush the cache. Thanks for the help!
http://www.dawninglight.net
Add sql to index.php
On my development site, I added this to index.php after including bootstrap.inc:
It's a kludgy way to eliminate the cache, but it works for me.