create an index on user.created so sitemap generation is faster
This commit is contained in:
parent
c5e89527d9
commit
7746611f20
|
@ -202,6 +202,12 @@ class SitemapPlugin extends Plugin
|
|||
null, false),
|
||||
new ColumnDef('modified', 'timestamp')));
|
||||
|
||||
$userCreated = $schema->getColumnDef('user', 'created');
|
||||
|
||||
if (empty($userCreated) || $userCreated->key != 'MUL') {
|
||||
$schema->createIndex('user', 'created');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user