Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
add CRAWL_META_ONLY option
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Apr 3, 2023
1 parent dc55dcb commit 79663c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/app.php.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ define('CRAWL_PAGE_LIMIT', 10);
define('CRAWL_PAGE_SECONDS_OFFSET', 3600);

define('CRAWL_URL_REGEXP', '/^.*$/ui');

define('CRAWL_META_ONLY', false);
2 changes: 1 addition & 1 deletion crontab/crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
Filter::pageTitle($title->item(0)->nodeValue),
Filter::pageDescription($description),
Filter::pageKeywords($keywords),
Filter::pageData($url->getContent()),
CRAWL_META_ONLY ? '' : Filter::pageData($content),
time());

// Update images
Expand Down

0 comments on commit 79663c8

Please sign in to comment.