🐛 Reindex post kinds
This commit is contained in:
parent
09ea4e647b
commit
0dab05cc16
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()
|
||||
{
|
||||
|
@ -384,6 +392,7 @@ function createPage($args)
|
|||
reindexTags();
|
||||
reindexAuthors();
|
||||
reindexArchives();
|
||||
reindexKinds();
|
||||
|
||||
// Add to syslog
|
||||
$syslog->add(array(
|
||||
|
@ -437,6 +446,7 @@ function editPage($args)
|
|||
reindexTags();
|
||||
reindexAuthors();
|
||||
reindexArchives();
|
||||
reindexKinds();
|
||||
|
||||
// Add to syslog
|
||||
$syslog->add(array(
|
||||
|
@ -464,6 +474,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