mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Create index location if it doesn't exist
This commit is contained in:
parent
6227e1eb68
commit
cdb55f94f8
@ -27,6 +27,8 @@ class RebuildLuceneDocsIndex extends BuildTask {
|
||||
ini_set("memory_limit", -1);
|
||||
ini_set('max_execution_time', 0);
|
||||
|
||||
Filesystem::makeFolder(DocumentationSearch::get_index_location());
|
||||
|
||||
// only rebuild the index if we have to. Check for either flush or the time write.lock.file
|
||||
// was last altered
|
||||
$lock = DocumentationSearch::get_index_location() .'/write.lock.file';
|
||||
|
Loading…
Reference in New Issue
Block a user