Reply: Page Caching

NOTE: You are posting the message as a 'Guest', you can not edit the message or delete it
Please Log in or Register to skip this step.

Topic History of: Page Caching

Max. showing the last 6 posts - (Last post first)

1 year 2 months ago
Page Caching

public function behaviors()
return [

Page Caching

Page caching refers to caching the content of a whole page on the server-side. Later when the same page is requested again, its content will be served from the cache instead of regenerating it from scratch.

Page caching is supported by [[yii\filters\PageCache]], an action filter. It can be used like the following in a controller class: