i needed this with changes for a project; based on gchaincl/laravel-fragment-caching