servicex.cache.ignore_cache#

servicex.cache.ignore_cache()[source]#

This will cause all caches to be ignored while it is invoked:

``` with ignore_cache():

ServiceXDataset(…).get_data…()

```

If you want to do this globally, you can just use the __enter__() method. This is probably the only way to do this accross cells in a notebook.

` i = ignore_cache() i.__enter__() ... Query code, jupyter notebook cells, etc. go here i.__exit(None, None, None) `

Note:

  • The only time the cache is checked is when the query is actually made, not when the servicex dataset object is created!

  • Calls to this can be safely nested.

  • Note that calling this doesn’t clear the cache or delete anything. It just prevents the cache lookup from working while it is in effect.