moodle/cache/stores/static
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
..
lang/en
tests MDL-38427 cache: implemented unit tests for all core cache stores 2013-03-01 10:11:55 +13:00
lib.php MDL-40538 caching: Use isset for performance 2013-07-10 10:15:19 +10:00
version.php MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00