root/releases/0.9rc2/lib/cache/lib.php

Revision 758, 0.5 kB (checked in by sven, 2 years ago)

set svn property eol-style native on some files without it

  • Property svn:eol-style set to native
Line 
1 <?php
2 /*
3     library to allow global caching of db table rows or complex objects, ideally in memcached.
4     pluggable to allow default engine to be a noop, meaning hooks in elgglib/datalib can
5     be transparent if no cache installed.
6 */
7
8 global $CFG;
9
10 if (empty($CFG->elggcache_enabled) || empty($CFG->elggcache_engine)) {
11     $CFG->elggcache_enabled = false;
12     $CFG->elggcache_engine = "noop";
13 }
14
15 // load engine
16 require_once($CFG->dirroot.'lib/cache/engine.' . $CFG->elggcache_engine . '.php');
17 elggcache_cacheinit();
18
19 ?>
20
Note: See TracBrowser for help on using the browser.