diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 0547985d..bd5f1ec2 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -32,6 +32,14 @@ function reindexArchives() return $archives->reindex(); } +// Re-index database of post kinds +// If you create/edit/remove a page is necessary regenerate the database of archives +function reindexKinds() +{ + global $kinds; + return $kinds->reindex(); +} + // Generate the page 404 Not found function buildErrorPage() { @@ -385,6 +393,7 @@ function createPage($args) reindexTags(); reindexAuthors(); reindexArchives(); + reindexKinds(); // Add to syslog $syslog->add(array( @@ -438,6 +447,7 @@ function editPage($args) reindexTags(); reindexAuthors(); reindexArchives(); + reindexKinds(); // Add to syslog $syslog->add(array( @@ -465,6 +475,7 @@ function deletePage($key) reindexTags(); reindexAuthors(); reindexArchives(); + reindexKinds(); // Add to syslog $syslog->add(array( diff --git a/bl-plugins/remote-content/plugin.php b/bl-plugins/remote-content/plugin.php index 4c05aa7d..30b0d102 100644 --- a/bl-plugins/remote-content/plugin.php +++ b/bl-plugins/remote-content/plugin.php @@ -156,6 +156,7 @@ EOF; reindexTags(); reindexAuthors(); reindexArchives(); + reindexKinds(); } return true;