use explode instead of deprecated split
fix handling of caching parameter
upped version