Example #1
0
/**
 * Enables the simple cache.
 *
 * @see elgg_view_register_simplecache()
 * 
 * @deprecated 1.8 Use {@link elgg_enable_simplecache()}
 */
function elgg_view_enable_simplecache()
{
    elgg_deprecated_notice("elgg_view_enable_simplecache() was deprecated by elgg_enable_simplecache()", 1.8);
    return elgg_enable_simplecache();
}
Example #2
0
 *
 * Options are saved among metadata on the site object, entries
 * in the datalist table, and entries in the config table.
 *
 * @package Elgg.Core
 * @subpackage Administration.Site
 */
if ($site = elgg_get_site_entity()) {
    if (!$site instanceof ElggSite) {
        throw new InstallationException(elgg_echo('InvalidParameterException:NonElggSite'));
    }
    $site->url = get_input('wwwroot');
    datalist_set('path', sanitise_filepath(get_input('path')));
    datalist_set('dataroot', sanitise_filepath(get_input('dataroot')));
    if (get_input('simplecache_enabled')) {
        elgg_enable_simplecache();
    } else {
        elgg_disable_simplecache();
    }
    if (get_input('system_cache_enabled')) {
        elgg_enable_system_cache();
    } else {
        elgg_disable_system_cache();
    }
    set_config('default_access', get_input('default_access', ACCESS_PRIVATE), $site->getGUID());
    $user_default_access = get_input('allow_user_default_access') ? 1 : 0;
    set_config('allow_user_default_access', $user_default_access, $site->getGUID());
    set_config('view', get_input('view'), $site->getGUID());
    $debug = get_input('debug');
    if ($debug) {
        set_config('debug', $debug, $site->getGUID());