discourse/app
Sam de9a031073
FEATURE: use canonical links in posts.rss feed (#16190)
* FEATURE: use canonical links in posts.rss feed

Previously we used non canonical links in posts.rss

These links get crawled frequently by crawlers when discovering new
content forcing crawlers to hop to non canonical pages just to end up
visiting canonical pages

This uses up expensive crawl time and adds load on Discourse sites

Old links were of the form:

`https://DOMAIN/t/SLUG/43/21`

New links are of the form

`https://DOMAIN/t/SLUG/43?page=2#post_21`

This also adds a post_id identified element to crawler view that was
missing.

Note, to avoid very expensive N+1 queries required to figure out the
page a post is on during rss generation, we cache that information.

There is a smart "cache breaker" which ensures worst case scenario is
a "page drift" - meaning we would publicize a post is on page 11 when
it is actually on page 10 due to post deletions. Cache holds for up to
12 hours.

Change only impacts public post RSS feeds (`/posts.rss`)
2022-03-15 20:17:06 +11:00
..
assets UX: Hide group avatar flair block if it's empty 2022-03-14 11:42:37 -06:00
controllers FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
helpers FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
jobs FIX: Update group inbox notifications on archive/unarchive (#16152) 2022-03-11 11:57:47 +01:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
serializers FEATURE: Highlight expired bookmark reminders (#15317) 2022-03-08 19:44:18 +02:00
services FIX: Update group inbox notifications on archive/unarchive (#16152) 2022-03-11 11:57:47 +01:00
views FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00