PhoenixKit.Modules.Publishing.Web.Controller.PostFetching (phoenix_kit v1.7.71)
Copy Markdown View SourcePost fetching functionality for the publishing controller.
Handles fetching posts from cache and database, including:
- Slug mode posts (versioned)
- Timestamp mode posts
- Language fallback logic
Summary
Functions
Fetches a slug-mode post - iterates from highest version down, returns first published. Falls back to primary language or first available if requested language isn't found.
Fetches posts using cache when available, falls back to direct DB read.
Functions
Fetches a slug-mode post - iterates from highest version down, returns first published. Falls back to primary language or first available if requested language isn't found.
Fetches posts using cache when available, falls back to direct DB read.
Tries ListingCache (persistent_term) first for sub-microsecond reads. On cache miss, regenerates from the database.