Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I add new content to my site (promoted to front page) everything seems to reload fine with the exception of the anonymous RSS feed.
I can view the new content on my site as anonymous or authenticated, and the RSS feed is complete for authenticated users. But when I try and view the RSS feed as an anonymous user the most recent post will be missing. Upon clearing the sites cache the RSS feed for anonymous begins working.
Is there something I can do to configure the RSS cache for anon to be cleared after new content is added?
Thanks!
Scott
Comment | File | Size | Author |
---|---|---|---|
#10 | boost-597156.1.patch | 8.83 KB | mikeytown2 |
#9 | boost-597156.patch | 7.63 KB | mikeytown2 |
#3 | boost-597156.patch | 6.81 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedLooks like I need to replace glob with a database operation.
In short the front page rss feed is called feed_.xml in the boost cache; the html is called _.html. Doing a file search for the front page doesn't work too well in this case.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedboost_cache_expire_derivative() will have to be redone; boost_cache_expire() might be killed. boost_cache_expire_derivative() will directly call boost_cache_kill().
When boost_cache_expire_derivative() is called will find aliases & redirects so it can find a matching filename in the database. Once a match is found, it then gets the page_callback, page_arguments and page_id; searching the database that match all 3. These are the files in the cache that need to be expired. Should cover html, xml, and ajax & url variables.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch is for the latest dev. It can't be done very easily without the latest changes that have gone in.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted
Comment #5
hadsie CreditAttribution: hadsie commentedThanks! Just updated to the .11 version, I'll report back if I have any problems.
Comment #6
hadsie CreditAttribution: hadsie commentedAfter updating it still seems like the issue is there. Should I be using the dev version to resolve this?
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedNo, I'll have to write in a special front page handler. What's the URL of your front page feed?
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedit's
/rss.xml
correct?Only holds content promoted to the front page right?
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedfixed some bugs in here as well.
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commentedmore bug fixing...
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted
Comment #12
hadsie CreditAttribution: hadsie commentedthat's right, it's the promoted to front page stuff. i'll try out this fix shortly, thanks so much!
Comment #13
mikeytown2 CreditAttribution: mikeytown2 commentedgrab 6.x-1.12 ;)