media detail
This commit is contained in:
@@ -33,7 +33,7 @@ public class MediaCreator : IMediaCreator
|
||||
string normalizedFilename = Safenames.File(filename);
|
||||
|
||||
bool isImage = Options.AllowedImageFileExtensions.Contains(fileExtension, StringComparer.InvariantCultureIgnoreCase);
|
||||
bool isDocument = !isImage && Options.AllowedOtherFileExtensions.Contains(filename, StringComparer.InvariantCultureIgnoreCase);
|
||||
bool isDocument = !isImage && Options.AllowedOtherFileExtensions.Contains(fileExtension, StringComparer.InvariantCultureIgnoreCase);
|
||||
|
||||
if (!isImage && !isDocument)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ public class ZeroDocumentStore : DocumentStore, IZeroDocumentStore
|
||||
};
|
||||
|
||||
session.Advanced.WaitForIndexesAfterSaveChanges();
|
||||
//session.Advanced.DocumentStore.AggressivelyCacheFor(TimeSpan.FromHours(1), options.Database); // TODO I guess this will not work in backoffice when we want to see changes immediately
|
||||
session.Advanced.DocumentStore.AggressivelyCacheFor(TimeSpan.FromHours(1), options.Database); // TODO I guess this will not work in backoffice when we want to see changes immediately
|
||||
// maybe use caching for frontend but not for backoffice?
|
||||
|
||||
return session;
|
||||
|
||||
Reference in New Issue
Block a user