Damyon Wiese
a446d62d97
Merge branch 'MDL-41071-master' of git://github.com/FMCorz/moodle
2013-08-20 16:01:12 +08:00
Dan Poltawski
6f44a73369
Merge branch 'w33_MDL-39474_m26_debugdeveloper' of https://github.com/skodak/moodle
...
Conflicts:
lib/upgrade.txt
2013-08-20 11:42:03 +08:00
Russell Smith
90048725b0
MDL-41291 cache: Use fread to avoid race conditions
2013-08-19 20:18:57 +10:00
Damyon Wiese
5ebe37fb27
Revert "MDL-41106 cache: several fixes for the session cache."
...
This reverts commit 89182546a0ae93a2aef79383bac902c77c7801f8.
This reverts commit 170b05362a82b2c1f5353551b7bd6fe4246fe951.
This reverts commit 2e9d5a534e8e3045923055baa1609d66cec0affe.
2013-08-19 15:32:08 +08:00
Sam Hemelryk
89182546a0
MDL-41106 cache: tidied up several elements
2013-08-19 11:32:08 +12:00
Marina Glancy
170b05362a
MDL-41106 Cleaning up expired elements in session cache store
...
- Always make sure the elements in cache are sorted so we need to remove only elements in the beginning of array
- Remove expired elements from session store to free memory
- Minor bug fixes
2013-08-19 09:28:36 +12:00
Sam Hemelryk
2e9d5a534e
MDL-41106 cache: several fixes for the session cache.
...
This issue makes several fixes for the session loader and the session store.
* maxsize argument now works for session caches.
* fixed performance hole when interation occurs frequently.
* fixed cache purge bug occuring when multiple caches are defined before being used.
* improved lastaccess handling.
2013-08-16 11:27:55 +12:00
Petr Škoda
96f81ea385
MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
2013-08-12 13:01:47 +02:00
Frederic Massart
d0cac8b51b
MDL-41100 libraries: Deprecating get_plugin_list_with_file
2013-08-09 11:59:48 +08:00
Frederic Massart
cbb3990bcb
MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition
2013-08-07 20:55:22 +08:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Sam Hemelryk
609bda269e
Merge branch 'w31_MDL-40891_m26_mkdirrace' of https://github.com/skodak/moodle
2013-07-29 11:53:02 +12:00
Petr Škoda
6763fde8d4
MDL-40891 prevent exceptions when creating directories in file store
...
Even if cache creation fails moodle should continue working.
2013-07-26 20:28:57 +02:00
Damyon Wiese
05b659b252
MDL-40727 Cache: Fix file cache store on windows.
2013-07-24 17:04:44 +08:00
Eloy Lafuente (stronk7)
154bc6b240
Merge branch 'w30_MDL-40642_m26_umask' of https://github.com/skodak/moodle
2013-07-23 23:42:11 +02:00
Eloy Lafuente (stronk7)
e71c47bf8c
MDL-40700 tests: skip if there is not instance
...
Various reasons can lead to the cache stores not being available
(missing extension, configuration...). Under those situations
the test must be skipped because for sure it will break if
we continue.
2013-07-23 17:00:02 +02:00
Eloy Lafuente (stronk7)
9e1e94aafa
Merge branch 'wip-MDL-40700-m26' of git://github.com/samhemelryk/moodle
2013-07-23 13:58:20 +02:00
Eloy Lafuente (stronk7)
8c2ed57043
Merge branch 'wip-MDL-40763-m26' of git://github.com/samhemelryk/moodle
2013-07-23 13:19:41 +02:00
Eloy Lafuente (stronk7)
d4731fd002
Merge branch 'wip-MDL-40677-m26' of git://github.com/samhemelryk/moodle
2013-07-23 12:52:50 +02:00
Sam Hemelryk
deeae9c155
Merge branch 'MDL-40680-master' of git://github.com/danpoltawski/moodle
2013-07-23 14:14:27 +12:00
Sam Hemelryk
67da59999a
MDL-40677 cache: fixed bug with maxsize when setting
2013-07-22 10:42:04 +12:00
Sam Hemelryk
6f6a8dd19e
MDL-40677: cachestore_static: implemented support for maxsize
2013-07-22 10:42:04 +12:00
Sam Hemelryk
cb3590091e
MDL-40677: cachestore_session: implemented support for maxsize
2013-07-22 10:42:04 +12:00
Sam Hemelryk
7dfa10b02e
MDL-40700 cache: memcache and memcached stores now allow alphanumext prefixes
2013-07-22 10:41:38 +12:00
Chris Wharton
a423acd95c
MDL-40700 cache: Validate memcache key prefix field
2013-07-22 10:41:37 +12:00
Sam Hemelryk
923f1c420c
MDL-40700 cache: fixed cache store unit tests
2013-07-22 10:40:45 +12:00
Petr Škoda
eb1ee665f6
MDL-40642 use this->cfg in local file store when fixing permissions
2013-07-19 09:18:44 +02:00
Petr Škoda
eb459f7192
MDL-40642 set more restrictive umask and use proper permission for new dirs and files
2013-07-19 09:18:44 +02:00
Petr Škoda
059e08ed92
MDL-40220 use new core_component::get_plugin_list_with_class()
2013-07-16 22:37:15 +02:00
Petr Škoda
bd3b3bba9f
MDL-40220 use new core_component::get_plugin_list()
2013-07-16 22:36:11 +02:00
Petr Škoda
46f6f7f224
MDL-40220 use new core_component::get_plugin_types()
2013-07-16 22:31:48 +02:00
Eloy Lafuente (stronk7)
3f0a8871d3
Merge branch 'MDL-40555-master' of git://github.com/FMCorz/moodle
...
Conflicts:
cache/stores/static/lib.php
2013-07-16 09:57:34 +02:00
Damyon Wiese
4d4fb80d8f
Merge branch 'MDL-40538' of https://github.com/mr-russ/moodle
2013-07-16 11:02:54 +08:00
Dan Poltawski
a10d6199c8
MDL-40680 store_memcached: fix serialiser options
...
* Use correct lang string for SERIALIZER_IGBINARY
* Use PARAM_INT for the parameter
2013-07-16 09:37:53 +08:00
Sam Hemelryk
4a749e93b4
MDL-40555 cache: implemented unit tests for default search functionality
2013-07-16 08:29:17 +08:00
Sam Hemelryk
10aabcb221
MDL-39062 cache: persist keys now set properly
2013-07-15 11:24:19 +12:00
Russell Smith
ae21341523
MDL-40538 caching: Use isset for performance
...
isset is much faster than array_key_exists. For caches we need to
ensure as much performance as possible. To all null to continue to
be stored and provide correct results, non ttl also now saves in
$this->store[$key][0]. As isset($this->store[$key]) will return
true in all cases.
time() as found in cache::now() can be slow on some platforms and
we shouldn't bother checking it unless needed. It also stops non-ttl
caches paying the ttl price.
Unit tests were adjusted to ensure null is still handled correctly
when we are only using isset.
2013-07-10 10:15:19 +10:00
Sam Hemelryk
a13ee8e18a
Merge branch 'MDL-40402-master2' of git://github.com/ankitagarwal/moodle
2013-07-09 14:42:03 +12:00
Frederic Massart
0d8eac408b
MDL-40555 cache: Static store is searchable
2013-07-08 15:09:04 +08:00
Petr Škoda
c05a50992e
MDL-40415 add explicit OPcache support
2013-07-04 19:32:26 +02:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Dan Poltawski
3d164e1ef4
Revert "MDL-39474 Library: Make a fast way to check developer debug mode"
...
There were multiple problems discovered.
This reverts commit 5c92e7a740fbce4184cf204a11ebbb6b918a376b.
Conflicts:
admin/cli/install.php
2013-06-18 15:07:22 +08:00
Dan Poltawski
af08eb9912
Merge branch 'MDL-39474-master' of git://github.com/sammarshallou/moodle
2013-06-17 15:36:15 +08:00
Dan Poltawski
bdce4a9cca
Merge branch 'MDL-39472-master' of git://github.com/sammarshallou/moodle
2013-06-12 13:56:39 +08:00
sam marshall
5c92e7a740
MDL-39474 Library: Make a fast way to check developer debug mode
2013-06-11 16:29:00 +01:00
Sam Hemelryk
1878661402
MDL-40100 cache: removed unneeded includes from add instance forms
2013-06-10 10:23:28 +12:00
Sam Hemelryk
9aacf24b62
MDL-39456 cachestore_file: added reference to global $CFG
...
By holding onto a reference of the global $CFG object we
can be sure that it isn't destroyed before we are done
with it.
This allows for caches to be used within destructors for
purposes such as delayed writes.
2013-05-24 09:51:11 +12:00
Helen Foster
9f3e096899
MDL-39642 Merge English strings from the en_fix language pack
2013-05-13 09:58:43 +02:00
Damyon Wiese
969eaa3eca
MDL-39602 cache: Move the includes for default stores
...
Putting them inside the function get_default_stores ensures
that they will be included from anywhere that calls get_default_stores.
2013-05-10 11:53:45 +08:00
Sam Hemelryk
b0dd08dd63
MDL-39430 cache: gets purged by force during upgrade and install
2013-05-09 10:42:21 +12:00