26 $this->cache =
new CompositeCache(
'query_cache', $this->config, $flags);
28 $this->enabled = $this->config->db_disable_query_cache !==
true;
29 if (isset($this->config->db_query_cache_limit)) {
30 $this->query_cache_limit = (int) $this->config->db_query_cache_limit;
65 $result = parent::save($key, $data, $expire_after);
66 if (
$result && !isset($this->keys[$key])) {
67 $this->keys[
$key] =
true;
69 if (
count($this->keys) > $this->query_cache_limit) {
70 $this->
delete(array_key_first($this->keys));
81 if (isset($this->keys[$key])) {
83 unset($this->keys[$key]);
84 $this->keys[
$key] =
true;
87 return parent::load($key);
93 public function delete(
string $key):
bool {
94 unset($this->keys[
$key]);
96 return parent::delete($key);
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
$config
Advanced site settings, debugging section.
__construct(protected Config $config)
Constructor.
if(!$entity instanceof\ElggUser) $data
save(string $key, mixed $data, int|\DateTime $expire_after=null)
{}
Volatile cache for select queries.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Extension of the DateTime class to support formatting a date using the locale.