PhoenixKit.Modules.Publishing.Web.Editor.Persistence (phoenix_kit v1.7.38)

Copy Markdown View Source

Post persistence operations for the publishing editor.

Handles create, update, and save operations for posts, including version creation and translation saving.

Summary

Functions

Performs save operation with validation and routing. Returns {:noreply, socket}.

Refresh available_languages and language_statuses (for language switcher updates).

Regenerates the listing cache for a blog.

Reload post from disk when another tab/user saves (last-save-wins).

Reload content after AI translation completes for the current language.

Functions

perform_save(socket)

Performs save operation with validation and routing. Returns {:noreply, socket}.

refresh_available_languages(socket)

Refresh available_languages and language_statuses (for language switcher updates).

regenerate_listing_cache(blog_slug)

Regenerates the listing cache for a blog.

reload_post_from_disk(socket)

Reload post from disk when another tab/user saves (last-save-wins).

reload_translated_content(socket, flash_msg, flash_level)

Reload content after AI translation completes for the current language.