CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/cmsinit.inc
includes
properties
functions
cache_load_array

boolean cache_load_array(string $name)

Load a stored configuration from cache/config_$name.php so you don't have to query the database for the settings.
Returns TRUE if the file is loaded and FALSE when the file doesn't exists.

INFO The array will be put in the global scope

if (!load_cfg('MAIN_CFG')) { // Do something like $db->sql_query('SELECT * FROM config'); }

Arguments

  • $name

    The name of the variable to load