mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10614] Check if cache exists before destroying it
PHPBB3-10614
This commit is contained in:
parent
68e4c667fa
commit
78de29b7ce
1 changed files with 20 additions and 5 deletions
|
@ -167,7 +167,10 @@ class phpbb_extension_manager
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->cache)
|
||||||
|
{
|
||||||
$this->cache->destroy($this->cache_name);
|
$this->cache->destroy($this->cache_name);
|
||||||
|
}
|
||||||
|
|
||||||
return !$active;
|
return !$active;
|
||||||
}
|
}
|
||||||
|
@ -221,7 +224,10 @@ class phpbb_extension_manager
|
||||||
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
|
if ($this->cache)
|
||||||
|
{
|
||||||
$this->cache->destroy($this->cache_name);
|
$this->cache->destroy($this->cache_name);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -238,7 +244,10 @@ class phpbb_extension_manager
|
||||||
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
|
if ($this->cache)
|
||||||
|
{
|
||||||
$this->cache->destroy($this->cache_name);
|
$this->cache->destroy($this->cache_name);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -298,7 +307,10 @@ class phpbb_extension_manager
|
||||||
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
|
if ($this->cache)
|
||||||
|
{
|
||||||
$this->cache->destroy($this->cache_name);
|
$this->cache->destroy($this->cache_name);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -309,7 +321,10 @@ class phpbb_extension_manager
|
||||||
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
WHERE ext_name = '" . $this->db->sql_escape($name) . "'";
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
|
if ($this->cache)
|
||||||
|
{
|
||||||
$this->cache->destroy($this->cache_name);
|
$this->cache->destroy($this->cache_name);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue