Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not cache feeds for the current day in cassandra #871

Merged
merged 2 commits into from
Sep 22, 2017

Conversation

Pchelolo
Copy link
Contributor

We were caching the result of the feed request for the current day in Cassandra, but it doesn't really make any sense - regenerating it is quite fast.

Bug: https://phabricator.wikimedia.org/T176233
cc @wikimedia/services

@Pchelolo Pchelolo changed the title Do not cache feeds for the current day inn cassandra Do not cache feeds for the current day in cassandra Sep 21, 2017
Change-Id: I55016bb26ae60efd6692cbcbe693adb012692ac2
@Pchelolo
Copy link
Contributor Author

Rebased, travis is passing now.

@@ -83,11 +83,11 @@ paths:
/feed:
x-modules:
- path: v1/feed.js
options: '{{merge({"feed_cache_control": "s-maxage=300, max-age=60", "ttl": 7200}, options.mobileapps)}}'
options: '{{merge({"feed_cache_control": "s-maxage=300, max-age=60", "ttl": 300}, options.mobileapps)}}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ttl is not used any more, so it can be safely removed (here and elsewhere).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Change-Id: I5d5c66bdb1eed0f8e5b57c5d382910fd8d637660
@d00rman d00rman merged commit e32ca50 into wikimedia:master Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants