mirror of
https://github.com/moodle/moodle.git
synced 2025-04-09 02:12:22 +02:00
Merge branch 'MDL-53967-master' of https://github.com/sk-unikent/moodle
This commit is contained in:
commit
9fdcce1680
7
cache/stores/memcached/lib.php
vendored
7
cache/stores/memcached/lib.php
vendored
@ -508,9 +508,14 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
|
||||
* @return array
|
||||
*/
|
||||
protected static function get_prefixed_keys(Memcached $connection, $prefix) {
|
||||
$connkeys = $connection->getAllKeys();
|
||||
if (empty($connkeys)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$keys = array();
|
||||
$start = strlen($prefix);
|
||||
foreach ($connection->getAllKeys() as $key) {
|
||||
foreach ($connkeys as $key) {
|
||||
if (strpos($key, $prefix) === 0) {
|
||||
$keys[] = substr($key, $start);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user