Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yii::$app->settings->clearCache() does not clear the cache for the front-end when you add a new setting #1

Closed
aetiv opened this issue Sep 24, 2014 · 2 comments

Comments

@aetiv
Copy link

aetiv commented Sep 24, 2014

You clean the cache in actions(update, create, delete) but Yii::$app - is backend application. Need to clear and for front-end

@arisk arisk closed this as completed in 08670ea Sep 24, 2014
@arisk arisk reopened this Sep 28, 2014
@arisk
Copy link
Contributor

arisk commented Sep 28, 2014

I think the best way to support this is the configure the front end cache component in the backend app. If you're using file cache your configuration would look something like this:

'components' => [
    'frontCache' => [
        'class' => 'yii\caching\FileCache',
        'cachePath' => '/path/to/frontend/runtime/cache'
    ],
],

Does this satisfy your requirement?

arisk added a commit that referenced this issue Sep 28, 2014
@aetiv
Copy link
Author

aetiv commented Sep 29, 2014

Yes, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants