Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Installing APC in Windows.

Talk:Installing APC in Windows

From MoodleDocs
Revision as of 22:59, 31 October 2010 by James Rudd (talk | contribs) (→‎APC.php security: Cleaned)

Quick question re this line: When setting the total memory available for the cache, start with the lowest that a single Moodle install can work with (64Mb)

So if I have 6 Moodles installed on one server would I therefore need the memory cache set to 64Mb or would it be 6 times 64Mb?


APC.php security

You can configure APC.php to use Moodle security. Create a new file apc.conf.php in the admin directory containing the following code. This will be automatically loaded by apc.php

<?php // Moodle user Authentication require_once("../config.php"); require_once($CFG->libdir.'/adminlib.php'); require_login(); require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));

// Disable APC Auth defaults('USE_AUTHENTICATION',0);

?>