Drupal: how to clear the filter cache
A filter is a Drupal feature, usually implemented by some contributed modules, which substitutes parts of a node text with some other text.
Eg: if you use the Path filter module you can insert links like:
<a href="internal:node/25">hello!</a>
and the string internal:node/25 will be substituted by something like http://www.example.com/node/25 where www.example.com is your website url.
In order to save server's resources, Drupal caches this filtering transformations at each node update. This way the filters logics are executed only when a content is updated.
Sometimes you might want to invalidate all the filter cache entries so that every filter will be rerun on the next node view.
In order to do this you can execute this query on your drupal database:
delete from cache_filter;
Be careful: this will delete the whole filter cache and might affect your website performance if you have a huge website with lot of filters enabled. Anyway performance issues will disappear as soon as cache is regenerated.
- fabio's blog
- 1090 reads

Recent comments
4 hours 22 min ago
4 hours 23 min ago
6 hours 13 min ago
16 hours 58 min ago
22 hours 21 min ago
1 day 43 min ago
1 day 2 hours ago
3 days 23 hours ago
3 days 23 hours ago
3 days 23 hours ago