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

Caching of the ViewLocalizer #38

Closed
peter-bozovic opened this issue Mar 6, 2013 · 2 comments
Closed

Caching of the ViewLocalizer #38

peter-bozovic opened this issue Mar 6, 2013 · 2 comments

Comments

@peter-bozovic
Copy link

Hello,

It looks like it is not possible anymore to override the ViewLocalizer class and handle cache that way (as suggested on CodeProject)
I tried to register my new class in every possible way within the Autofac builder but the GriffinWebViewPage is unable to find it and is constantly initializing the ViewLocalizer(IViewLocalizationRepository)

Is there any other suggestion on how to handle cache ?
My pages are getting bigger and bigger and i'm getting hundreds of sql requests that I would like to avoid :)

Thanks

@jgauffin
Copy link
Owner

jgauffin commented Mar 6, 2013

Did you try: containerBuilder.RegisterType<YourLocalizer>().As<ViewLocalizer>().SingleInstance()?

@peter-bozovic
Copy link
Author

That worked !
Thank you very much :)

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

No branches or pull requests

2 participants