docbrown/app/controllers
rhymes 50cdfb0a96 Do not cache articles notification time indication (#4122)
Fragment caching does not support an explicit expiration date for simplicitly, which means that cached resources are tied to the update datetime of the model.

In this case unfortunately this is not sufficient: a cached time that potentially never gets expired can stale quickly when applied to a time sensitive item like a notification.

Since the "time ago" computation is not particularly heavy and notifications are paginated, I ended up removing that part from the cache altogether.

As a byproduct I created two new separate cache keys for the article notification, one of each section surrounding the time.
2019-09-29 11:39:03 -04:00
..
admin Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
api/v0 Doorkeeper default scope (#4066) 2019-09-24 11:11:12 -07:00
concerns Listings creation and update API (#4014) 2019-09-24 07:03:52 -07:00
internal Adjust BufferUpdatesController's authorization (#4070) 2019-09-20 11:50:34 -07:00
notifications Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
oauth Destroy webhook endpoints when user revokes oaurh app access (#4099) 2019-09-26 06:23:38 -04:00
additional_content_boxes_controller.rb Make AdditionalContentBoxesController#randomize private (#3115) [ci skip] 2019-06-11 10:27:29 -04:00
api_secrets_controller.rb Replace "access token" with "API Key" (#3960) [ci skip] 2019-09-06 09:08:39 -04:00
application_controller.rb Revert changes as a hotfix (#3964) 2019-09-06 11:54:35 -04:00
articles_controller.rb Refactor remove_all and remove_each notifications and fix orphaned notifications (#3570) 2019-09-25 15:31:56 -04:00
async_info_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
badges_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
blocks_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
buffer_updates_controller.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
buffered_articles_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
chat_channel_memberships_controller.rb Added rubocop-rails (#3059) 2019-06-06 09:47:57 -04:00
chat_channels_controller.rb Remove commented code and tests (#3989) [ci skip] 2019-09-09 14:51:02 -04:00
classified_listings_controller.rb Listings creation and update API (#4014) 2019-09-24 07:03:52 -07:00
comments_controller.rb Remove commented code and tests (#3989) [ci skip] 2019-09-09 14:51:02 -04:00
credits_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
dashboards_controller.rb Refactoring dashboards_controller.rb. (#3794) 2019-08-22 20:54:21 -04:00
display_ad_events_controller.rb Update Complexity linters (#3507) [ci skip] 2019-08-01 16:38:27 -04:00
downloads_controller.rb Add android and ios apps download page (#3736) (#3798) 2019-08-22 21:04:58 -04:00
email_subscriptions_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
events_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
feedback_messages_controller.rb Removed bug reports from app (#1565) 2019-01-16 11:28:59 -05:00
follows_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
ga_events_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
github_repos_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
giveaways_controller.rb Further generalize pages and site Twitter handle (#3177) 2019-06-16 00:59:11 -04:00
history_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
html_variant_successes_controller.rb Move HtmlVariantSuccess.create delay calls to ActiveJob (#3173) 2019-06-18 21:36:33 -04:00
html_variant_trials_controller.rb Move HtmlVariantTrial.create delay calls to ActiveJob (#3173) (#3239) 2019-06-20 18:14:20 -04:00
html_variants_controller.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
image_uploads_controller.rb Simplify the images uploading code (#3907) [ci skip] 2019-09-04 08:14:59 -04:00
liquid_embeds_controller.rb Modify headers to allow embed (#3935) 2019-09-03 16:38:04 -04:00
live_articles_controller.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
messages_controller.rb Move messages send_push delay calls to ActiveJob (#3314) 2019-07-08 18:00:19 -04:00
moderations_controller.rb Add new mod links and tooling (#4009) 2019-09-12 00:11:01 -04:00
notification_subscriptions_controller.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
notifications_controller.rb Do not cache articles notification time indication (#4122) 2019-09-29 11:39:03 -04:00
omniauth_callbacks_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
organizations_controller.rb Fix encoding of special characters on organization page rendering (#3944) 2019-09-09 14:13:23 -04:00
page_views_controller.rb Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
pages_controller.rb Remove all old membership code, see 97040ab6 (#3575) 2019-07-30 12:33:50 -04:00
partnerships_controller.rb Sponsorship Updates (#3719) 2019-08-16 14:54:26 -04:00
podcast_episodes_controller.rb Fix podcasts episodes surrogate key and add "/podcasts" (#3577) 2019-08-01 12:14:25 -04:00
poll_skips_controller.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
poll_votes_controller.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
pro_accounts_controller.rb Add basic pro accounts lander test (#3433) 2019-07-09 22:10:50 -04:00
pro_memberships_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
profile_pins_controller.rb Adjust listings social image and add "About Listings" button to show page. (#3468) 2019-07-12 16:40:39 -04:00
push_notification_subscriptions_controller.rb Added rubocop-rails (#3059) 2019-06-06 09:47:57 -04:00
pusher_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
rating_votes_controller.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
reading_list_items_controller.rb Pro: History (#3220) 2019-06-18 14:58:24 -04:00
registrations_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
social_previews_controller.rb Refactoring social_previews_controller.rb. (#3818) 2019-08-24 16:24:20 -04:00
stories_controller.rb Add more variation to home feed (#4069) 2019-09-19 12:58:11 -07:00
stripe_active_cards_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
tag_adjustments_controller.rb Refactoring possible unprotected redirect. (#3825) 2019-08-27 10:13:38 -04:00
tags_controller.rb Refactoring possible unprotected redirect. (#3825) 2019-08-27 10:13:38 -04:00
twilio_tokens_controller.rb Added rubocop-rails (#3059) 2019-06-06 09:47:57 -04:00
twitch_live_streams_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
twitch_stream_updates_controller.rb Fix Typos (#3510) 2019-07-22 12:56:48 -04:00
users_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
video_states_controller.rb Added rubocop-rails (#3059) 2019-06-06 09:47:57 -04:00
videos_controller.rb Refactor VideosController (#3806) [ci skip] 2019-08-26 18:59:31 -04:00