z_media_cleanup_server (zotonic_core v1.0.0-rc.11)
Link to this section Summary
Functions
Force a cleanup - useful after mass deletes, or when disk space is getting low.
Convert process state when code is changed
Trap unknown calls
Trap unknown casts
Handling all non call/cast messages
Initiates the server.
Starts the server
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.
Link to this section Functions
Link to this function
cleanup(Context)
Link to this function
code_change(OldVsn, State, Extra)
Link to this function
handle_call(Message, From, State)
Link to this function
handle_cast(Message, State)
Link to this function
handle_info(Info, State)
Link to this function
init(Site)
Link to this function
start_link(Site)
-spec start_link(atom()) -> {ok, pid()} | ignore | {error, term()}.
Link to this function