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: Difference between revisions

From MoodleDocs
No edit summary
 
(Add security to apc.php script)
Line 3: Line 3:


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?
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?
You configure APC.php to use Moodle security.
Create a new file apc.conf.php in admin directory with the copied apc.php. This will be automatically loaded by apc.php
<code 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);
?>
</code>

Revision as of 22:51, 31 October 2010

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?


You configure APC.php to use Moodle security. Create a new file apc.conf.php in admin directory with the copied apc.php. 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);

?>