Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Magnus 4 posts 24 karma points
    Mar 04, 2014 @ 14:45
    Magnus
    0

    Local to www sync

    Hello,

    I have an Umbraco 6.1.6 site on localhost and an exact copy of the site on a www-server. I'm having some trouble to sync changes from localhost to server.

    This is how I do:
    1, On startpage I have a property named "headline". I change the text to from "test1" to "test2" and save and publish the page.
    2, I go to the www-server, log in to umbraco and "Republish entire site".
    3, If i now take a look at the startpage (on www-server) in the browser it shows "test2" for headline, so far so good.
    4, BUT if I go into back office the property field still holds the value "text1" that is the OLD value, and on the properties tab "Last edited" value is also the OLD one. So the node isn't updated.

    Database holds the correct value ("test2"). umbraco.config on the www-server holds the correct value ("test2"). Where comes the value "test1" from? Some server memory cache?

    It seems if I wait about 30 minutes, the value is updated. If I rebuild the site and upload it to www-server the new value is also there.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Mar 05, 2014 @ 00:08
    Kevin Jump
    0

    Hi

    Short Answer : Look at the distributed Call setting for umbraco - they will let you tell the server when content has changed

    Longer Answer: While you may not think of it is as such what you actually have between your local host and the web server is very similar to a load balanced version of umbraco, I assume you are keeping the files on the disk in sync when you change things like data types the your actual problem is most likey the cache that umbraco uses not being updated when you create/modify and publish content on your machine.

    while umbraco stores everything in the database it actually uses a disk cache when rendering the website - this makes sites much quicker and puts less load on the database servers but it also means that if you have more than one webserver serving the site you need to tell it when things change so it can update it's cache.

    this is actually quite easy - the documentation for load balancing goes in to a lot of detail on the type of setups you can have and how to configure them, but if you have two sites with everything else being equal you need to look at the distributed call settings in your umbraco.config file.

    at the simplest level (local to server) you will probably just need to put the name of the web server into this file for your local host and it will ping it every-time you change content so the server can update it's cache.

    Kevin

Please Sign in or register to post replies

Write your reply to:

Draft