U4-6675 - Media cache needs to be optimized

Created by Stephan 05 Jun 2015, 16:28:42 Updated by Stephan 24 Jul 2015, 08:28:29

In its current state the media cache will hit Examine, ie Lucene, on every media request. Ie, any time Umbraco.TypedMedia(1243) is called, we hit Examine. Or, if the media is not yet in Examine, the database. Perfs-wise, that is bad. Especially on new architectures where the filesystem is not local, such as Azure setups.

We should optimize the media cache to at least keep the medias in memory for a short while.

Comments

Stephan 16 Jul 2015, 16:28:31

Commits a814b51682d26e2d751461f8ba431b4e19357662, 012c3289cd76b08a5c343483baa7e9cf6f8a8ea2


Shannon Deminick 21 Jul 2015, 08:17:20

@zpqrtbnk just a reminder to close this when finished ;)


Stephan 24 Jul 2015, 08:28:26

Implemented and tested, works on my machine


Priority: Normal

Type: Task

State: Fixed

Assignee: Stephan

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.3.0

Sprint:

Story Points:

Cycle: