21 Commits

Author SHA1 Message Date
nicolasconnault
6fc4ad7243 Almost completed the new profiling tool. Just a bit more tweaking :-) 2007-03-20 02:59:34 +00:00
nicolasconnault
b65567f455 Started adding enhanced profiling using APD. 2007-03-20 00:34:05 +00:00
stronk7
1d5c40048a Moving set_dbfamily() from dmllib.php to setuplib.php as it's
needed in early stages and we don't want the installer to
depend of dmllib.
2007-01-13 10:44:58 +00:00
stronk7
bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
stronk7
c0fe837eeb Adding support for mysqli. MDL-8113 2007-01-08 19:07:41 +00:00
martinlanghoff
f917d0ea9b $MCACHE - rework memcached support - some rework on eaccelerator
We now have a wrapper memcached support class to handle
initial connection setup, provide the common denominator
calls, plus getforfill() and friends.

The eaccelerator class now returns false to match memcached. The
downside of this is that we cannot store booleans as a false value
is indistinguishable from a false that indicates error or 'key not
found'.
2006-12-27 22:47:51 +00:00
martinlanghoff
2142d4924f $MACHE: add support for eaccelerator/memcached, change the $MCACHE calling convention a bit
- this effectively breaks memcached support for the moment
2006-12-27 22:47:14 +00:00
martinlanghoff
9c967c33fb init_memcached(): only use pconnect if configured to do so
Make pconnections optional - only use pconnect if $CFG->memcachedpconn is
set. In current versions of the memcache client in PECL (v2.0.1),
memcache_pconnect() is buggy and will segfault if reusing a pconnection
to a server that has gone away or restarted.

And hope for a more stable client library in PECL ;-)
2006-12-27 22:45:13 +00:00
martinlanghoff
419e1d937e Introducing $MCACHE - Memory-based cache
$MCACHE is initially based on core API that is shared between memcached and
turckmmcache/eaccelerator. The core operations are add(), set() and delete()

This initial implementation uses the PECL-based PHP client. Would be trivial
to add support for a PHP-based client.

The $MCACHE facility can be used for DB cache, text filters cache, and possibly
for sessions.
2006-12-27 22:44:39 +00:00
martinlanghoff
76f3815be9 raise_memory_limit() earlier -- resolves OOM on 64-bit platforms
On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.

On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)
2006-12-26 22:48:36 +00:00
toyomoyo
7ddf8aa59f adding more checks to make sure 1.8 is unicode only MDL-6332 2006-11-09 04:27:44 +00:00
stronk7
b2ad03364b Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
2006-10-19 22:07:21 +00:00
stronk7
97ab73aad4 Add odbc_msql dbtype to a bunch of places. 2006-10-09 22:55:55 +00:00
stronk7
0700134df5 Detect Oracle Database Encoding in order to set CFG->unicodedb properly 2006-09-22 17:23:09 +00:00
stronk7
010f2a3977 Typo! :-( 2006-09-04 22:17:28 +00:00
stronk7
bf05229983 MSSQL only runs under UTF8 (with the correct ODBTP driver, of course) 2006-09-04 22:16:30 +00:00
skodak
d389b12829 create safer .htaccess SC#302 2006-08-28 21:07:43 +00:00
moodler
d100b8a04d Make sure .htaccess is created in dataroot, just in case 2006-08-18 09:54:09 +00:00
patrickslee
2544a80de1 PostgreSQL 8 compatibility fix for database character set detecting 2006-04-23 23:39:56 +00:00
stronk7
7104d80dbc Now setup.php detects is CFG->unicode is not set and examines
DB to detect such value dinamically. Useful for installations
not using the standard installer but manually edited config.php
files.
Little TODO: modify a bit the initial config tables insets to
insert this value, avoiding to call it for each request. Coming
soon (although not mandatory for 1.6beta). Tested against both
MySQL and PostgreSQL with unicode and non-unicode DBs.
2006-03-27 11:24:14 +00:00
moodler
d3f9f1f85d Moving some functions to setuplib.php so they are first 2006-01-05 07:08:10 +00:00