This is a migrated thread and some comments may be shown as answers.
Cache-Strategy-Setting has no effect
3 Answers 57 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thomas
Top achievements
Rank 1
Thomas asked on 05 Feb 2010, 11:38 AM
Hello.

I set up the cache-strategy setting as described here (http://www.telerik.com/help/openaccess-worm/configuration-file-format.html#IDH_BACKENDCONFIGCACHING) but when my app has retrieved an entity from the database and I change it on the database and reload in the app then there is still the old state. This seems to me there is still some caching going on.

When I do a ObjectScope().Refresh(customer) the object is properly reloaded but telling OA to not cache my customers does not seem to have an effect.

What to do?

Kind regards,
Thomas.

3 Answers, 1 is accepted

Sort by
0
Chris Williams
Top achievements
Rank 1
answered on 06 Feb 2010, 09:30 PM
I also have a question about this setting.  Do you configure it in the app.config/web.config file, under the backendconfiguration section, as shown below?  Or does it get set in a different location?

<backendconfiguration id="azureConfiguration" backend="azure"
                <mappingname>azureMapping</mappingname> 
                <l2CacheEnabled>True</l2CacheEnabled> 
                <lockTimeout>5000</lockTimeout> 
                <l2QueryCacheEnabled>True</l2QueryCacheEnabled> 
                <logging.logEventsToSysOut>True</logging.logEventsToSysOut> 
        <class name="CommerceServer"
          <extension key="cache-strategy" value="no" /> 
        </class> 
</backendconfiguration> 

thanks,
Chris
0
Accepted
Damyan Bogoev
Telerik team
answered on 10 Feb 2010, 07:11 PM
Hello Thomas Bilk,

You could find useful the Caching example which is located here. It provides detailed explanation how the mechanism is working and its implementation.
The IObjectScope.Refresh method refreshes the state and values of the persistent object from the database.
I hope that will help you.

Greetings,
Damyan Bogoev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Damyan Bogoev
Telerik team
answered on 10 Feb 2010, 08:16 PM
Hi Chris Williams,

Yes, the changes which are made from the Backend Configuration Wizard affect inside the app.config/web.config under the backendconfiguration section.

Regards,
Damyan Bogoev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Development (API, general questions)
Asked by
Thomas
Top achievements
Rank 1
Answers by
Chris Williams
Top achievements
Rank 1
Damyan Bogoev
Telerik team
Share this question
or