Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolled back Viewer to 22.11. Added internal caching. #32

Merged
merged 1 commit into from Feb 23, 2023

Conversation

vladimir-litvinchik
Copy link
Collaborator

This pull request contains two main changes

  1. Rolled back Viewer to 22.11 due to significantly decreased performance when rendering PDF files
  2. Added internal caching of Viewer instance. Internal caching is enabled by default and can be disabled through configuration
builder.Services
    .AddControllers()
    .AddGroupDocsViewerSelfHostApi(config =>
    {
        config.ConfigureInternalCaching(options =>
        {
            options.DisableInternalCache();
        });
    })

You can also change the internal cache entry lifetime. By default, it is set to 5 minutes.

builder.Services
    .AddControllers()
    .AddGroupDocsViewerSelfHostApi(config =>
    {
        config.ConfigureInternalCaching(options =>
        {
            options.SetCacheEntryExpirationTimeoutMinutes(10); 
        });
    })

@vladimir-litvinchik vladimir-litvinchik merged commit 1a3fadc into master Feb 23, 2023
@vladimir-litvinchik vladimir-litvinchik deleted the internal-caching branch February 23, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant