media detail

This commit is contained in:
2021-12-19 01:16:02 +01:00
parent a4a6c8a1d7
commit facb41910b
18 changed files with 367 additions and 42 deletions
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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;