@@ -89,9 +89,11 @@ |
||
| 89 | 89 | return map(); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - if( self::$lastRefresh < ( $time = time() ) - 60 ) // clear cache regularly for Laravel Octane |
|
| 92 | + if( self::$lastRefresh < ( $time = time() ) - 60 ) { |
|
| 93 | + // clear cache regularly for Laravel Octane |
|
| 93 | 94 | { |
| 94 | 95 | self::$lastRefresh = $time; |
| 96 | + } |
|
| 95 | 97 | self::$siteInactive = []; |
| 96 | 98 | } |
| 97 | 99 | |
@@ -45,9 +45,12 @@ |
||
| 45 | 45 | { |
| 46 | 46 | $db->for( ['mariadb', 'mysql'], 'CREATE FULLTEXT INDEX `idx_msindte_content` ON `mshop_index_text` (`content`)' ); |
| 47 | 47 | |
| 48 | - try { |
|
| 48 | + try |
|
| 49 | + { |
|
| 49 | 50 | $db->for( 'postgresql', 'CREATE INDEX "idx_msindte_content" ON "mshop_index_text" USING GIN (to_tsvector(\'english\', "content"))' ); |
| 50 | - } catch( \Exception $e ) { |
|
| 51 | + } |
|
| 52 | + catch( \Exception $e ) |
|
| 53 | + { |
|
| 51 | 54 | // Doctrine DBAL bug: https://github.com/doctrine/dbal/issues/5351 |
| 52 | 55 | } |
| 53 | 56 | } |