E
E
EvgMul2018-10-23 08:41:22
Yii
EvgMul, 2018-10-23 08:41:22

How to disable page caching in Yii2?

Hello.
The site uses caching like:

'cache' => [
    'class' => 'yii\caching\FileCache',
],

I don't fully understand how it works and which pages it caches and which doesn't.
Tell me, please, can I somehow indicate that a specific action does not need to be cached and every time I access the database for data?
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2018-10-23
@EvgMul

It doesn't cache anything itself. Read the docs.
https://yiiframework.com.ua/ru/doc/guide/2/caching...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question