2

Now, I use default cache for all:

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

And I use nodge eauth for registration users. Default config nodge:

'components' => [
  'eauth' => array(
    'class' => 'nodge\eauth\EAuth',
    'popup' => true, // Use the popup window instead of redirecting.
    'cache' => false, // Cache component name or false to disable cache. Defaults to 'cache' on production environments.
    'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited.
  )
]

What should I specify to cache?

Sageth
  • 1,102
  • 1
  • 15
  • 30
Mс1er
  • 59
  • 5

1 Answers1

0

If you want to cache requests, your config should be

'eauth' => [
            'class' => 'nodge\eauth\EAuth',
            'popup' => false, // Use the popup window instead of redirecting.
            'cache' => 'cache', // Cache component name or false to disable cache. Defaults to 'cache' on production environments.
            'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited.]

But I can be wrong.

Peter Badida
  • 11,310
  • 10
  • 44
  • 90
Colohanin Nik
  • 393
  • 1
  • 5
  • 11