mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 19:53:42 +08:00
The browser pageview events are triggered inside `log_later` which runs asynchronously via `Scheduler::Defer`. This means plugins listening to the `:browser_pageview` event cannot rely on `Time.zone.now` or `created_at` timestamps to know exactly when the page view occurred. By capturing `occurred_at` synchronously during request processing and passing it through to the event payload, plugins can now accurately record the time the page view happened. |
||
|---|---|---|
| .. | ||
| anonymous_cache.rb | ||
| crawler_hooks.rb | ||
| csp_script_nonce_injector.rb | ||
| default_headers.rb | ||
| discourse_public_exceptions.rb | ||
| enforce_hostname.rb | ||
| missing_avatars.rb | ||
| omniauth_bypass_middleware.rb | ||
| overload_protections.rb | ||
| processing_request.rb | ||
| request_tracker.rb | ||