mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00: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("memory_limit", -1);
|
||||||
ini_set('max_execution_time', 0);
|
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
|
// only rebuild the index if we have to. Check for either flush or the time write.lock.file
|
||||||
// was last altered
|
// was last altered
|
||||||
$lock = DocumentationSearch::get_index_location() .'/write.lock.file';
|
$lock = DocumentationSearch::get_index_location() .'/write.lock.file';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user