Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Custom ContentProvider caching issue

$
0
0

We have a custom ContentProvider that loads a document library from Sharepoint, but we have a problem with the caching - specifically of children. When caching is turned on, we see files and folders on the top level only. Clicking on a folder shows it as empty. 

Turning off the caching by overriding the method that takes children as a parameter results in all files and folders being shown for all levels. 

protected sealed override void SetCacheSettings(ContentReference contentReference,
    IEnumerable<GetChildrenReferenceResult> children, CacheSettings cacheSettings)
        {
            cacheSettings.CancelCaching = true;
            base.SetCacheSettings(contentReference, children, cacheSettings);
        }

We don't cache anything explicitly in the ContentProvider - as we understand, this should be automatically handled.

Any suggestions would be greatly appreciated. 


Viewing all articles
Browse latest Browse all 9076

Latest Images

Trending Articles


Practice Sheet of Pronoun References for HSC Students


Download: Alice Chuma – Okondewa


Neem Baba Extra Questions Answer Class 6 English Poorvi


CalCen


Muloraki Au


Mahakal Attitude Status


Love (2015).H264.Italian.English.Ac3.5.1.multisub.iCV-MIRCrew Seed (62)/Leech...


MUSIC STATION – 2017.09.01


Waves Complete v2019.02.14 Incl Emulator-R2R


Students hit streets to save Agriculture College land in city



Latest Images