Cache-Strategy-Setting has no effect

4 posts, 1 answers
  1. Thomas
    Thomas avatar
    9 posts
    Member since:
    Sep 2008

    Posted 05 Feb 2010 Link to this post

    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.
  2. Chris Williams
    Chris Williams avatar
    63 posts
    Member since:
    Oct 2004

    Posted 06 Feb 2010 Link to this post

    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
  3. DevCraft banner
  4. Answer
    Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 10 Feb 2010 Link to this post

    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.
  5. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 10 Feb 2010 Link to this post

    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.
Back to Top