🐛 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();
|
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
|
// Generate the page 404 Not found
|
||||||
function buildErrorPage()
|
function buildErrorPage()
|
||||||
{
|
{
|
||||||
|
@ -385,6 +393,7 @@ function createPage($args)
|
||||||
reindexTags();
|
reindexTags();
|
||||||
reindexAuthors();
|
reindexAuthors();
|
||||||
reindexArchives();
|
reindexArchives();
|
||||||
|
reindexKinds();
|
||||||
|
|
||||||
// Add to syslog
|
// Add to syslog
|
||||||
$syslog->add(array(
|
$syslog->add(array(
|
||||||
|
@ -438,6 +447,7 @@ function editPage($args)
|
||||||
reindexTags();
|
reindexTags();
|
||||||
reindexAuthors();
|
reindexAuthors();
|
||||||
reindexArchives();
|
reindexArchives();
|
||||||
|
reindexKinds();
|
||||||
|
|
||||||
// Add to syslog
|
// Add to syslog
|
||||||
$syslog->add(array(
|
$syslog->add(array(
|
||||||
|
@ -465,6 +475,7 @@ function deletePage($key)
|
||||||
reindexTags();
|
reindexTags();
|
||||||
reindexAuthors();
|
reindexAuthors();
|
||||||
reindexArchives();
|
reindexArchives();
|
||||||
|
reindexKinds();
|
||||||
|
|
||||||
// Add to syslog
|
// Add to syslog
|
||||||
$syslog->add(array(
|
$syslog->add(array(
|
||||||
|
|
|
@ -156,6 +156,7 @@ EOF;
|
||||||
reindexTags();
|
reindexTags();
|
||||||
reindexAuthors();
|
reindexAuthors();
|
||||||
reindexArchives();
|
reindexArchives();
|
||||||
|
reindexKinds();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue