简体   繁体   中英

Sitecore Publishing

I'm using Sitecore 7.0 and there is an publishing ribbon.

If I select item on the left panel and click big ribbon on the top of tool box, it shows two options, Publish site and Publish Item.

I'd like to make sure the difference between "Republish" in Publish Site and "Republish" in Publish Item .

Also, I know that if site publishes, it clears all caches.
Does the cache clear when I use "Republish" in Publish Item option as well??

Both you do the same thing, the difference is only as the name says, Republish Site will republish all items while republish item will only republish the selected item.

The difference between smart, incremental and republish you can see here: http://www.sitecoreinsight.com/sitecore-publish-site-tool-publishing-modes/

And about the cache, yes, it always clear the cache :)

You can check that in a event handler on your web.config file. That is the proccess responsible for it and it is fired when any type of publish ends.

  <event name="publish:end">
    <handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
      <sites hint="list">
        <site>website</site>
      </sites>
    </handler>
  </event>

UPDATE :

It clears all HTML cache for the list of sites you see in the configuration above. Publishing does not affect the items cache, I actually don't know what Sitecore does to renew such cache.

There is a tool where you can check the cache status: http:// your domain /sitecore/admin/cache.aspx

Also take a look at this post, it has a good overview about Sitecore caching http://sitecorebasics.wordpress.com/2011/03/05/sitecore-caching/

There is another tool that is also incredibly helpful for investigating what's being cached. It's on the Marketplace and is called "Cache Admin": https://marketplace.sitecore.net/Modules/Sitecore_Cache_Admin.aspx?sc_lang=en

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM