Hot answers tagged

10

Object cache: What Object cache does is stores metadata about SharePoint Server objects (like SPWeb, SPSite, SPList, etc.) on the WFEs. When a page is rendered, if there is data that needs to be retrieved through these objects, the SQL Server will not be hit. Features of SharePoint that uses Object cache are publishing, content query web part, navigation, ...


6

After banging my head around for some days, the problem was solved by flushing the blob cache. This is the command I used on the Front end server $webApp = Get-SPWebApplication "<WebApplicationURL>" [Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp) Write-Host "Flushed the BLOB cache for:" $webApp https://technet.microsoft....


3

Object cache - metadata, WP queries of external sources, search boxes, quick launch, breadcrumb Default is on Configurable through GUI or web.config per each SC BLOB cache - binary large objects like images or CSS files, stored on WFE disks Default is off Configurable through GUI or web.config Page (output) cache - for whole pages to load them faster ...


3

There are various ways: // Stop Caching in IE Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); // Stop Caching in Firefox Response.Cache.SetNoStore(); or you could use the @Output property: http://msdn.microsoft.com/en-us/library/ms178606(VS.80).aspx http://msdn.microsoft.com/en-us/library/hdxfb6cy(v=vs.80).aspx Here you can find all ...


3

SharePoint Foundation does not support output caching. You have to rely on ASP.NET Cache objects in your code. Infact BLOB cache, page output, and object cache are not available in SharePoint foundation. Page output and object cache require that you activate the ‘SharePoint Server Publishing’ feature located in the site features of your web site, so these ...


3

Chris O'Brien wrote a cool post recently about all problems with cached css and javascript files in sharepoint. UPDATE If you are using themable css and EnableCssTheming set to true and your site use some theme (using theme is required), sharepoint will compile your css file into another css file with replacing placeholders, that looks like /* [ReplaceColor(...


3

You should create a big array that you'll then store into the sessionStorage. And your code is not really clear.... based on what you asked I rewrote it: // we suppose that "index" is the "Title" we are looking for var index = "My Title"; // get the data from sessionStorage !function() { var list = sessionStorage.getItem('PrivacyStatementsList'); var ...


3

Ok I have finally found the root cause for this issue. I believe this is a bug relating to either Windows Server 2019, SharePoint Server 2019, or a combination of the both. Basically, the application pool accounts do not have sufficient permissions to create BlobCache folders in a vanilla install of SP2019 (specifically on Server 2019). There are 2 key ...


2

You could use WFE's to cache, but ensure you have enough RAM assigned in each of the servers to cater for the needs of App Fabric and SharePoint. Performance will drop if the servers run out of RAM and start paging. The main motivator to run on the same servers should be cost driven. Some possible reasons to run App Fabric caching on seperate servers are in ...


2

IIS 7 Output caching! I'd enabled this a while ago to try and improve performance on the public side of the SharePoint side - but apparently the only noticeable effect was that the system pages were cached. Oh well, having turned it off my group memberships are now displaying properly. Lesson learned.


2

Does the site have any caching profile enabled? If the site has one enabled it might be caching the entire output of the page even though the webpart has been modified.


2

I encountered this same problem in SharePoint 2016, and was finally able to resolve it by configuring output cache profiles. Output Cache Profiles are applied at both the site collection level (by clicking the Site collection output cache link under Site Collection Administration) and the site level (by clicking Site output cache under Site Administration). ...


2

If they are 5 different apps from 5 different developers and each is using its own local copy of Jquery then there is nothing you can do. On the other hand, if you are the developer of those 5 apps just use put all common files on a central server and reference the files from there. Browser caching works based on the domain where the file is pulled from.


2

You can use query string for every new JS/CSS files like ?v=GUID to trick the browsers, which definitely will ensure new CSS/JS will be loaded every time you perform a new deploy. Otherwise, there is no clean solution to avoid browsers' behavior. /Style Library/my_js_file.js?v=GUID /Style Library/my_js_file.css?v=<current date>


2

Create a WebPart which calls PublishingHttpModule.DontEnableCachingForRequest and insert that on the page.


2

It looks like you are calling CSSRegistration on a css file that doesn't exist. CSSRegistration is used to ensure that a css file will only be loaded once even if it is referenced multiple times. It can also allow for conditional loading of stylesheets depending on what browser is being used to view the page. Have a look through any masterpages or page ...


1

Can you deliver the data in chunks? Such as an infinite scroll or paging? If that's the case, I'd say just use AJAX and oData to grab more data as it's needed. Also, how static is the content? Does it change often? If not you could always try browser caching or offline storage. Simply put, we might need more information before we could better help out :-)


1

This blog post explains in a verbose, but clear, fashion about how to appropriately configure blob caching for SharePoint. For example: Failure to specify a max-age attribute in the BlobCache element of the web.config will result in the default value of 86,400 seconds (24 hours) being used. Use of a non-zero max-age attribute will result in the attachment ...


1

If they have the namespaces you need, go for it. You've tagged it with '2013', are you using SharePoint 2013? Make sure that the AppFabric Cache cluster you're using is not the one SharePoint 2013 using, make sure it's on a server that's not one of your SharePoint servers and one that you're maintaining on your own. It's unsupported to use the AbbFabric ...


1

Try setting query.Webs: query.Webs = "<Webs Scope=\"SiteCollection\" />"; See if that makes a difference. I also found another site that might help: http://sharepoint.nailhead.net/2008/04/musing-on-crosslistquerycache-class.html


1

Cache misses are mostly likely to happen because of insufficient memory as they all are stored in Ram. If not then mostly cause must do with the Cache configuration. I would suggest to try the different settings specified for the object cache like changing the maxSize directly in the web.config etc. in the article below, http://technet.microsoft.com/en-us/...


1

"Cache miss for query Web" may be the answer. You may be looking at the ULS log for the wrong portion. I would look at the ULS log for the first successful run and see if there is not a cache miss for the list that results in a cache dump for the list you are querying. You may be able to remedy by changing the query from server side to client side. If I ...


1

Although the answer is already posted I want to say that in my case the problem was with Content Query Web Part caching. And to disable it I set UseCache attribute to False using SPD.


1

Configuring object cache settings The object cache settings can be configured at the site collection level in the user interface by a site collection administrator, and is on by default. The maximum cache size can be configured at the Web application level on the front-end Web server to place a restriction on the maximum amount of memory that ...


1

In my webparts and other SP related items, I typically will use the HttpRuntime.Cache for my caching needs.


1

You should probably consider what kind of cache are you targeting: client-side cache only (try embedding Pragma:no-cache headers in specific pages/controls or even appending random query strings on every request - very bad for performance if you're doing it in the master page) or server-side cache - e.g. for Publishing sites use Caching Profiles. There is ...


1

Remember you should not cache the SPListItem itself as it contains a link to the SPWeb used to get it and will often require this to be alive. So get the information out of the SPListItem and into some repository objects. Regarding security: Disclaimer: I've never tried to use this, but it should work. The SPListItem has a property SPReusableAcl inherited ...


1

One other consideration is product support from Microsoft for AppFabric. Microsoft will only provide support for dedicated AppFabric servers. Combining multiple server applications on one server is not supported per this article: From the article: http://msdn.microsoft.com/en-us/library/hh334311.aspx Microsoft AppFabric 1.1 for Windows Server cache ...


1

Make sure you do not have the ASP.NET patch KB2638420/MS11-100 installed. This ASP.NET patch will render the page output cache useless. Just uninstall it or install SP2010 April 2012 CU (which fixes this scenario).


1

you can use PortalSiteMapProvider which is leverage object cache in MOSS. CQWP is also uses it


Only top voted, non community-wiki answers of a minimum length are eligible