Website: Update homepage personalization, add note to custom hook. (#18433)
Changes: - Updated personalization on the integrations section of the homepage for users with `vm` or `eo-security`. - Added a `FUTURE:` note to the custom hook detailing how to use the platform model to be smarter about sending requests to the Algolia crawler.
This commit is contained in:
Vendored
+2
@@ -89,6 +89,8 @@ will be disabled and/or hidden in the UI.
|
||||
fromName: sails.config.custom.fromName,
|
||||
});
|
||||
// Send a request to our Algolia crawler to reindex the website.
|
||||
// FUTURE: If this breaks again, use the Platform model to store when the website was last crawled
|
||||
// (platform.algoliaLastCrawledWebsiteAt), and then only send a request if it was <30m ago, then remove dyno check.
|
||||
if(sails.config.environment === 'production' && process.env.DYNO === 'web.1'){
|
||||
sails.helpers.http.post.with({
|
||||
url: `https://crawler.algolia.com/api/1/crawlers/${sails.config.custom.algoliaCrawlerId}/reindex`,
|
||||
|
||||
Reference in New Issue
Block a user