yii2-settings | Persistent settings in Yii2 | Web Framework library
kandi X-RAY | yii2-settings Summary
kandi X-RAY | yii2-settings Summary
Persistent, application-wide settings for Yii2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Searches for items .
- Updates the settings .
- Set a setting .
- Create settings table .
- Get all settings .
- Get settings .
- Get a setting value .
- Retrieve behaviors .
- Updates an existing Setting model .
- Prepare model attributes .
yii2-settings Key Features
yii2-settings Examples and Code Snippets
Community Discussions
Trending Discussions on yii2-settings
QUESTION
I am using YII2 Advanced, on the backend I needed an Action that invalidates the Cache in the frontend.
This is needed because I use yii2mod/yii2-settings, obiously, the settings are being cached on both ends. But I wasn't able to flush the cache from the backen with Yii::$app->cache->flush();
, this will do it just in the backend.
ANSWER
Answered 2018-Mar-06 at 22:17So somehow I found that if I make a reference on the backend components, I end having access to flush on the backend.
On \backend\config\main.php
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yii2-settings
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page