mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-26 06:25:25 +00:00
move hostPageDescription.data field data to hostPageDom.value
This commit is contained in:
parent
665563e0b8
commit
2b49ff5f6a
Binary file not shown.
@ -186,17 +186,6 @@ define('DEFAULT_HOST_PAGES_LIMIT', 100000);
|
|||||||
*/
|
*/
|
||||||
define('DEFAULT_HOST_PAGES_MIME', 'text/html,application/xhtml+xml,application/javascript,text/plain,text/css,image/webp,image/png,image/gif,image/jpeg,image/ico,image/svg+xml,video/mp4,video/ogg,video/webm,audio/mpeg,audio/ogg,audio/wav,audio/mp4,audio/aac,audio/aacp,audio/webm,audio/x-caf,audio/x-mpegurl,audio/flac,font/ttf');
|
define('DEFAULT_HOST_PAGES_MIME', 'text/html,application/xhtml+xml,application/javascript,text/plain,text/css,image/webp,image/png,image/gif,image/jpeg,image/ico,image/svg+xml,video/mp4,video/ogg,video/webm,audio/mpeg,audio/ogg,audio/wav,audio/mp4,audio/aac,audio/aacp,audio/webm,audio/x-caf,audio/x-mpegurl,audio/flac,font/ttf');
|
||||||
|
|
||||||
/*
|
|
||||||
* Index only meta tags
|
|
||||||
* or false to save meta tags + base64 encoded page content in the `hostPage`.`data` field
|
|
||||||
*
|
|
||||||
* Warning!
|
|
||||||
* this option requires huge disk storage,
|
|
||||||
* it's experimental feature, oriented for index operations
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
define('DEFAULT_HOST_PAGES_DATA', false);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generate hostPageDom table by CSS selectors
|
* Generate hostPageDom table by CSS selectors
|
||||||
*
|
*
|
||||||
|
@ -736,7 +736,6 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_HOST_PAGE_QUEUE_LIMIT, time() - CRAWL_
|
|||||||
$metaTitle,
|
$metaTitle,
|
||||||
$metaDescription ? Filter::pageDescription($metaDescription) : null,
|
$metaDescription ? Filter::pageDescription($metaDescription) : null,
|
||||||
$metaKeywords ? Filter::pageKeywords($metaKeywords) : null,
|
$metaKeywords ? Filter::pageKeywords($metaKeywords) : null,
|
||||||
$content ? (Helper::getHostSettingValue($db, $memory, $queueHostPage->hostId, 'PAGES_DATA', DEFAULT_HOST_PAGES_DATA) ? base64_encode($content) : null) : null,
|
|
||||||
time());
|
time());
|
||||||
|
|
||||||
// Collect page DOM elements data on enabled
|
// Collect page DOM elements data on enabled
|
||||||
|
@ -420,7 +420,6 @@ class MySQL {
|
|||||||
mixed $title,
|
mixed $title,
|
||||||
mixed $description,
|
mixed $description,
|
||||||
mixed $keywords,
|
mixed $keywords,
|
||||||
mixed $data,
|
|
||||||
int $timeAdded) {
|
int $timeAdded) {
|
||||||
|
|
||||||
$this->_debug->query->insert->total++;
|
$this->_debug->query->insert->total++;
|
||||||
@ -429,16 +428,14 @@ class MySQL {
|
|||||||
`title`,
|
`title`,
|
||||||
`description`,
|
`description`,
|
||||||
`keywords`,
|
`keywords`,
|
||||||
`data`,
|
|
||||||
`timeAdded`
|
`timeAdded`
|
||||||
) VALUES (?, ?, ?, ?, ?, ?)');
|
) VALUES (?, ?, ?, ?, ?)');
|
||||||
|
|
||||||
$query->execute([
|
$query->execute([
|
||||||
$hostPageId,
|
$hostPageId,
|
||||||
$title,
|
$title,
|
||||||
$description,
|
$description,
|
||||||
$keywords,
|
$keywords,
|
||||||
$data,
|
|
||||||
$timeAdded,
|
$timeAdded,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user