saikat
saikat

Reputation: 397

How can I implement caching of sub templates in Kohana?

I am doing a project in kohana and i am facing a problem in caching a sub-template from a single page. i am talking about sub-parts of a single page....so one section is static another is dynamic...ive implemented it using nested views, with each independant static part in one view and each dynaminc part in another.

That means a single page my be constructed of a series of nested views some of which contian only static data, others that contain fully dynamic content that must be generated at the time of the request and some dynamically generated content that may be allowed to be semi state....which i would like to keep cached.

Any kohana expert there to solve my problem? Thanks in advance

Upvotes: 0

Views: 553

Answers (1)

biakaveron
biakaveron

Reputation: 5483

Kohana has a Fragment class for output caching. Read more about this class.

Upvotes: 2

Related Questions