RickStrahl / Westwind.Globalization

Database driven resource localization for .NET applications
544 stars 135 forks source link

'Reload resources' does not affect the JavaScriptResourceHandler #207

Open SergeyZhilyakov opened 3 years ago

SergeyZhilyakov commented 3 years ago

I noticed that if I click 'Reload resources', the resources loaded via the JavaScriptResourceHandler are not affected. So in order to apply the changes I have to restart the application pool.

The url looks as follows:

http://DOMAIN/JavaScriptResourceHandler.axd?ResourceSet=Global&LocaleId=de&VarName=resources&ResourceType=resdb&ResourceMode=1

Here is the config:

<add key="ConnectionString" value="DefaultConnection" />
<add key="StronglyTypedGlobalResource" value="~/Resources/Global.Designer.cs" />
<add key="ResourceBaseNamespace" value="MY.Resources" />
<add key="ResxBaseFolder" value="~/Resources/" />
<add key="AddMissingResources" value="False" />
<add key="ActiveConfiguration" value="" />
<add key="ResourceAccessMode" value="DbResourceManager" />
<add key="ResourceTableName" value="Localizations" />
<add key="ResxExportProjectType" value="Project" />
<add key="LocalizationFormWebPath" value="~/LocalizationAdmin/" />
<add key="DataProvider" value="SqlServer" />
<add key="StringLocalizerResourcePath" value="Resources" />

I wonder if there is a way to clear the cache when the 'Reload resources' is clicked. Thanks.

Meanwhile it works fine on localhost. As far as I understood, the problem might be in the time zones. In my case the production server is in different time zone.