You are here

function boost_crawler_seed_tables in Boost 6

Logic to get boost_crawler table ready.

Parameters

$expire: Has the site changed, if so get expire column

1 call to boost_crawler_seed_tables()
boost_crawler_run in ./boost.module
The brains of the crawler.

File

./boost.module, line 6170
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_crawler_seed_tables($expire) {
  if (boost_crawler_add_to_table(BOOST_PUSH_HTML, BOOST_FILE_EXTENSION, $expire) && boost_crawler_add_to_table(BOOST_PUSH_XML, BOOST_XML_EXTENSION, $expire) && boost_crawler_add_to_table(BOOST_PUSH_JSON, BOOST_JSON_EXTENSION, $expire) && boost_crawler_add_alias_to_table() && boost_crawler_prune_table($expire)) {

    // All URL's added to boost_crawler table; start hitting URL's
    return TRUE;
  }
  else {
    return FALSE;
  }
}