Skip to main content

Cache Primer for Sharepoint with ADFSv3

Project description


The first time a browser hits a sharepoint site after a restart, the caches are empty, so the page can take a while to load. One can script something to silently hit a sharepoint web-frontends, causing it to build caches and preventing any real people from experiencing that.

This tool does this for a specific circumstance where it’s kind of hard to script it without better tools - where normal NTML authentication doesn’t work, because there is ADFSv3 authentication configured, and where there may be a number of web-frontends behind a load balancer.

I don’t know why this is required. I’m not a sharepoint admin. Maybe it’s an artifact of a particular setup.


Simple install:

pip install sharepointcacheprimer


usage: sharepointcacheprimer [-h] config site [site …]

Connect to sharepoint site, authenticate, and load a page, thereby priming the caches. The configuration file should contain a section defining each site you are priming.

positional arguments:

config configuration ini file site sites (section names) in configuration ini file to prime

optional arguments:
-h, --help

show this help message and exit


See the included ‘example.ini’ for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharepointcacheprimer-1.0b1.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page