mastodon/app/lib
ThibG 89e28c7674
Fix PostgreSQL load when linking in announcements (#13250)
* Fix PostgreSQL load when linking in announcements

Fixes #13245 by caching status lookups

Since statuses are supposed to be known already and we only
need their URLs and a few other things, caching them should
be fine.

Since it's only used by announcements so far, there won't
be much statuses to cache.

* Perform status lookup when saving announcements, not when rendering them

* Change EntityCache#status to fetch URLs instead of looking into the database

* Move announcement link lookup to publishing worker

* Address issues pointed out during review
2020-04-05 12:51:22 +02:00
..
activitypub Change `tootctl media remove-orphans` to work for all classes (#13316) 2020-03-26 01:56:41 +01:00
connection_pool
nodeinfo
ostatus
proof_provider
settings
activity_tracker.rb
application_extension.rb
delivery_failure_tracker.rb
entity_cache.rb Fix PostgreSQL load when linking in announcements (#13250) 2020-04-05 12:51:22 +02:00
exceptions.rb Add specific rate limits for posting and following (#13172) 2020-03-08 15:17:39 +01:00
extractor.rb
fast_geometry_parser.rb
feed_manager.rb Add streaming API updates for announcements being modified or deleted (#12963) 2020-01-26 20:07:26 +01:00
formatter.rb Fix malformed HTML causing uncaught error (#13042) 2020-02-07 15:24:22 +01:00
hash_object.rb
inline_renderer.rb Add announcements (#12662) 2020-01-23 22:00:13 +01:00
language_detector.rb Bump cld3 from 3.2.6 to 3.3.0 (#13107) 2020-03-09 00:12:52 +01:00
potential_friendship_tracker.rb
proof_provider.rb
rate_limiter.rb Add specific rate limits for posting and following (#13172) 2020-03-08 15:17:39 +01:00
request.rb
request_pool.rb
rss_builder.rb
sanitize_config.rb Fix rendering `<a>` without `href` when scheme unsupported (#13040) 2020-02-08 21:22:38 +01:00
search_query_parser.rb
search_query_transformer.rb
sidekiq_error_handler.rb
spam_check.rb Exempt staff members from spam check (#12874) 2020-01-17 07:50:30 +01:00
status_filter.rb
status_finder.rb
tag_manager.rb
themes.rb
toc_generator.rb
user_settings_decorator.rb
webfinger_resource.rb