Fix lxml link on documentation
Make global cache depends on explicit context keys

This should prevent the invalidation of the cache when the context keys that are
changed has no influence onn the global cache.

issue3905
review6291002
merge