🐛 Reindex post kinds
This commit is contained in:
parent
b8542b730a
commit
efc3be31d0
2 changed files with 12 additions and 0 deletions
|
@ -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(
|
||||
|
|
|
@ -156,6 +156,7 @@ EOF;
|
|||
reindexTags();
|
||||
reindexAuthors();
|
||||
reindexArchives();
|
||||
reindexKinds();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue