Showing posts with label sitecore. Show all posts
Showing posts with label sitecore. Show all posts

Tuesday, March 12, 2013

Disable sitecore cahe

To tern off sitecore caching set following values in sitecore config.
<!--  CACHING ENABLED
 Determines if caching should be enabled at all
 Specify 'true' to enable caching and 'false' to disable all caching
-->
<setting name="Caching.Enabled" value="false" />
<!--  DISABLE BROWSER CACHING
 If true, all pages will have:
   Cache-Control: no-cache, no-store
   Pragma: no-cache
 in the http header
-->
<setting name="DisableBrowserCaching" value="true" />

Wednesday, March 6, 2013

Reseting admin password in Sitecore

Sitecore inside Core db stores users information. In order to reset password to 'b' for a user 'admin' one has to run a following script
UPDATE [aspnet_Membership] SET Password='8dC23rEIsvuttG3Np1L4hJmJAOA=', PasswordSalt=' joeLPwcwMq6L7kyuVfVS7g=='   
WHERE UserId IN (SELECT UserId FROM [aspnet_Users] WHERE UserName = 'sitecore\Admin') 
It is important to set both Password and PasswordSalt.