Partial caching on the fly

I want to partial cache instead of global activating.

For example:

page('skills')->cache()->children();

I dont want to cache whole site. cache.ignore option may be usable but i think cache running on the fly like on above example more useful.

What do you think?

What do you want the syntax you proposed to do? To cache the skills page?

I think I would prefer a whitelist like c::set('cache.whitelist', array('skills')) in the config. Having this stuff in a central place makes the site much easier to debug as you don’t have to look through every template/snippet to check if that page is made cacheable.

2 Likes

cache.whitelist make sense! This option is available? I guess not yet :smile:

No, not yet. :smile:
And here’s the issue on GitHub. :smiley:

1 Like

Thanks @lukasbestle great news :wink: