I want to disable the prefetch cache settings. Is there any way to disable them? I tried deleting the files from prefetch folder but site throws exception.
1 Answer
I believe you should be able to use Sitecore's config patches to remove the caches. For example:
<sitecore>
<databases>
<database id="core">
<dataProviders hint="list:AddDataProvider">
<dataProvider ref="dataProviders/main" param1="$(id)">
<prefetch hint="raw:AddPrefetch">
<patch:delete />
</prefetch>
</dataProvider>
</dataProviders>
</database>
</databases>
</sitecore>
-
1Reason for the error is that the Sitecore.config file defines a path for those prefetch configs that you deleted. You have to apply a patch for all 3 databases: core, master and web. Jan 31, 2019 at 10:29
-
-
@KoenHeye - I just see that now the file paths are there is in the sitecore.config . Thanks !!– JTCJan 31, 2019 at 12:42
-
3@JTC - I want to stress that you should use a patch file to override the sitecore.config as Trayek described! Jan 31, 2019 at 12:53
-