1

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 1

4

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>
5
  • 1
    Reason 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.
    – Koen Heye
    Jan 31, 2019 at 10:29
  • @Trayek , Thanks for the detail and . I will try this patch .
    – JTC
    Jan 31, 2019 at 12:42
  • @KoenHeye - I just see that now the file paths are there is in the sitecore.config . Thanks !!
    – JTC
    Jan 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!
    – Koen Heye
    Jan 31, 2019 at 12:53
  • @JTC If this solved the issue, please mark it as the answer :-)
    – Trayek
    Feb 6, 2019 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.