简体   繁体   中英

How to clear cache in Sitecore

I updated the RichText commands.js file under /sitecore/shell/controls/rich text editor .

I have copied it to the production environment, but my change isn't being applied. I am guessing JS is cached - how do I clear the cache? Site doesn't require a publish since content items weren't updated. Cleared the cache at /sitecore/admin/cache.aspx too.

Browser caching cleared. Recycled the app pool and restarted the website as well.

Sitecore 7.2

The javascript is cached in your browser not in Sitecore. Depending on your browser you can clear it from the toolbox (all of them have a clear cache option) or use the following shortcuts:

Firefox, Chrome, IE: Ctrl+Shift+Delete
Safari: Ctrl+Alt+E

This is a browser caching. A common solution is to add a ? to the script's src link.

For instance: you can modify

 Website\sitecore\shell\Controls\Rich Text Editor\Default.aspx

and

\Website\sitecore\shell\Controls\Rich Text Editor\EditorPage.aspx

to have:

<script type="text/javascript" language="javascript" src="/sitecore/shell/Controls/Rich Text Editor/RichText Commands.js?v=152605"></script>

Also you can open your browser in incognito mode or to delete browser cache

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