yii2-settings | Yii2 Settings Module | Web Framework library
kandi X-RAY | yii2-settings Summary
kandi X-RAY | yii2-settings Summary
yii2-settings
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get value type .
- Get field types
- Get a config value .
- Searches the settings .
- Before saving .
- Updates settings form .
- Set a setting
- Create settings table .
- Retrieve behaviors .
- Returns the raw settings .
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