U4-6930 - Spike: Must clarify Umbraco status during app event handlers

Created by Sebastiaan Janssen 06 Aug 2015, 08:47:42 Updated by Shannon Deminick 26 Oct 2015, 12:36:47

Relates to: U4-6816

I have an ApplicationEventHandler that overrides ApplicationStarted. In there I use the UmbracoContext.Current.Application.Services.ContentService to create a new content item (when it doesn't exist yet and if a marker file doesn't exist in my App_Data folder). Think there's something missing in the context because the content item gives the infamous "Oops: this document is published but is not in the cache" error.

Comments

Priority: Minor

Type: Task

State: Open

Assignee: Stephan

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: