1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Restored JSON core image generator for performance

PDO SQLite was performing unacceptably poorly.
Let's just load the entire integrity image into RAM…
This commit is contained in:
Nick Liu
2020-03-23 17:04:44 -05:00
parent 90bdc88d55
commit b8ed70693f
9 changed files with 383 additions and 30 deletions

View File

@@ -16,8 +16,9 @@ class e_file_inspectorTest extends \Codeception\Test\Unit
public function _before()
{
require_once(e_HANDLER . "e_file_inspector_json.php");
require_once(e_HANDLER . "e_file_inspector_sqlphar.php");
$this->e_integrity = new e_file_inspector_sqlphar();
$this->e_integrity = new e_file_inspector_json();
}
public function testGetChecksums()
@@ -69,7 +70,7 @@ class e_file_inspectorTest extends \Codeception\Test\Unit
*/
public function testPathToDefaultPath()
{
$object = new e_file_inspector_sqlphar();
$object = $this->make('e_file_inspector');
$class = new ReflectionClass(get_class($object));
$method = $class->getMethod('pathToDefaultPath');
$method->setAccessible(true);