Commit graph

24305 commits

Author SHA1 Message Date
moodler
ccbcb1a893 Automatic installer.php lang files by installer_builder (20061228) 2006-12-28 03:08:48 +00:00
martinlanghoff
02d3b34a8e rcache_getforfill() - better phpdoc 2006-12-27 22:55:12 +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
3530015874 rcache functions -- use a saner memory cache API
Push into the $MCACHE object
 - dealing with getforfill() nuances
 - dealing with moodle-host prefixes
2006-12-27 22:46:31 +00:00
martinlanghoff
ec9fe5cf6f rcache_set() and rcache_table_unset(): use a configurable TTL 2006-12-27 22:45:47 +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
c96a4a46d5 rcache_* calls - flesh out logic and use $MCACHE if available
- move from $CFG->enablerecordcache <count> to $CFG->rcache <type>

 - if $CFG->rcache === 'internal' use the cache array
   otherwise, attempt to use $MCACHE

 - implement and use rcache_getforfill() to catch thundering herds

 - the cache lifetime is hardcoded to 2s until we understand better the
   possible race conditions against updates that are not happening via
   update_record() / delete_record()
2006-12-27 22:40:38 +00:00
martinlanghoff
cd60d017ea get_performance_info(): fixup rcache stats
0 cache misses is valid and probably a good score ;-)
2006-12-27 22:40:16 +00:00
martinlanghoff
6c2f585f85 dmllib: introducing the rcache_* functions for record cache handling
Abstracted Sam's initial work with $record_cache into a series of functions
that abstract things _just enough_ that we can use an internal
in-memory-array implementation or something that is shared across
processes, like memcached or the turckmmcache/eaccelerator caches.

Also
- added hit/miss stats tracking and reporting
- removed max entries limiting as it was buggy - var names mismatches
  and not counting unset()s
2006-12-27 22:39:32 +00:00
skodak
adb61bc203 MDL-7950 Display only new messages option and other minor changes in jsless messaging ui 2006-12-27 16:06:17 +00:00
martinlanghoff
247035f8fc redirect(): fix protocol name in redirection header() 2006-12-27 01:49:14 +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
moodler
b8d4068893 Automatic installer.php lang files by installer_builder (20061226) 2006-12-26 03:11:17 +00:00
skodak
eb449c584d MDL-7956 Add frameless and JSless message composition option - message text area a bit smaller 2006-12-25 22:38:56 +00:00
skodak
531e58f1b2 MDL-7956 Add frameless and JSless message composition option 2006-12-25 22:34:05 +00:00
stronk7
2f078622af Now excel can be generated under iso-8859-1 (safer) based on the
$CFG->excelisofiles (true/false) value. It allows iso-8859-1
compatible sites to use better Excel generation. MDL-7993.
2006-12-25 19:51:17 +00:00
skodak
aef5c10d7c MDL-7996 Add ods export support - basic functions needed for 1.8 release should be all working fine, more improvements later ;-) 2006-12-25 18:22:28 +00:00
skodak
c4f72672c5 MDL-7996 Add ods export support - more formatting improvements and other fixes 2006-12-22 22:30:11 +00:00
tjhunt
36703ed725 MDL-8003 - part - Use formslib for question editing forms
This commit does two things:
1. Gives question types he opion to use formslib for their editing forms, instead of the old mechanism.
2. Converts the truefalse question type to formslib.
2006-12-22 15:39:40 +00:00
tjhunt
9dae915acb New param type: PARAM_NUMBER, for floating point numbers. 2006-12-22 13:29:20 +00:00
tjhunt
77ed3ba5fd MDL-8002 - Don't show overall feedback for incomplete quiz attempts.
Also, cleanup of mod/quiz/index.php
2006-12-22 12:52:13 +00:00
skodak
f748220f0f MDL-7996 Add ods export support - row height implemented 2006-12-22 10:37:02 +00:00
skodak
25ea2ad6c3 MDL-7996 Add ods export support - column width fixed 2006-12-22 10:26:34 +00:00
skodak
b0a945fc44 MDL-7996 Add ods export support - added changing of column width 2006-12-22 10:04:50 +00:00
toyomoyo
70f150bf0c MDL-7861, fixing xhtml tags 2006-12-22 07:19:00 +00:00
toyomoyo
7ac95a7181 MDL-7861, fixing tags 2006-12-22 06:31:34 +00:00
toyomoyo
c5f6db7a61 MDL-7861, fixing broken tags 2006-12-22 05:58:28 +00:00
moodler
0cdf34fb03 Fixed lots of XHTML errors but still not working correctly in Strict 2006-12-22 05:42:36 +00:00
toyomoyo
9d9aa95baf fixing broken tags for MDL-7861 2006-12-22 05:20:20 +00:00
moodler
2222eb84bb Added CDATA to Javascript 2006-12-22 05:01:17 +00:00
moodler
704a26cbdd Fixed XHTML and Javascript insertion of tags into the templates 2006-12-22 04:55:41 +00:00
moodler
5e87b920e3 Added CDATA to Javascript 2006-12-22 04:52:13 +00:00
moodler
a4e2f9e9bb Add CDATA to Javascript 2006-12-22 04:35:06 +00:00
moodler
5f60ed9b6a Added CDATA to Javascript 2006-12-22 04:25:00 +00:00
toyomoyo
6221541139 taking out unwanted/broken strings from mod_form to make form xhtml strict MDL-7861 2006-12-22 04:23:43 +00:00
moodler
ce926cb8d8 Added CDATA to Javascript 2006-12-22 04:19:52 +00:00
moodler
ad897001c2 Added CDATA to Javascript 2006-12-22 04:17:56 +00:00
toyomoyo
b034bdfffc MDL-7861, fixing broken tag 2006-12-22 02:51:41 +00:00
vyshane
5609f9e672 More fixes in grade_display_letter_grades(). MDL-7861. 2006-12-22 02:34:42 +00:00
vyshane
49b5477e07 xhtml fix in grade_display_letter_grades() for MDL-7861. 2006-12-22 02:26:09 +00:00
vyshane
0ca5abd67d xhtml fixes in grade_display_grade_weights() for MDL-7861. 2006-12-22 02:23:52 +00:00
vyshane
9d95a8dd08 xhtml fix in grade_display_grade_preferences(). For MDL-7861. 2006-12-22 02:14:28 +00:00
toyomoyo
c5bb277093 MDL-7861, fixing xhtml forms 2006-12-22 02:10:41 +00:00
toyomoyo
33999deb2c fixing warning 2006-12-22 01:16:51 +00:00
toyomoyo
95947ac9b6 replacing missing << with theme left arrow 2006-12-22 00:54:03 +00:00
skodak
09b14fec34 MDL-7996 Add ods export support - better xml from KSpread 1.6.1 :-) 2006-12-21 22:18:17 +00:00
martinlanghoff
ccc776694d debugging(): our errors must be passed to PHP as E_USER_NOTICE 2006-12-21 21:56:49 +00:00
skodak
77c7f0f549 MDL-7996 Add ods export support - quiz report and number value, call time pass by ref... warnings fixed; fix in ods export lib 2006-12-21 20:34:51 +00:00