diff --git a/inc/common.php b/inc/common.php
index 962c05c37307056877ce5dd9d424cce467f25e85..82a5b7086c5f94ed85c69fc19d652e7a786d31f8 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -926,6 +926,16 @@ function saveWikiText($id,$text,$summary,$minor=false){
 
   // update the purgefile (timestamp of the last time anything within the wiki was changed)
   io_saveFile($conf['cachedir'].'/purgefile',time());
+
+  // if useheading is enabled, purge the cache of all linking pages
+  if($conf['useheading']){
+    require_once(DOKU_INC.'inc/fulltext.php');
+    $pages = ft_backlinks($id);
+    foreach ($pages as $page) {
+      $cache = new cache_renderer($page, wikiFN($page), 'xhtml');
+      $cache->removeCache();
+    }
+  }
 }
 
 /**