ConfigManager
This class manages config loading and saving. It makes a two-level lazy loading:
- A top-level cache which avoids loading a data if it has already been done since the beginning of the current page generation. This cache has a short life span: it's flushed as of the PHP interpreter reaches the end of the page generation.
- A filesystem or shared RAM cache to avoid querying the database many times to obtain the same value. This cache is less powerful than the previous one but it has an infinite life span. Indeed, it's valid until the value changes and the manager is asked to store it
public static
|
|
public static
|
#
save( string $module_name,
Saves in the data base (DB_TABLE_CONFIGS table) the data and has it become persistent. |
public static
|