1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-26 03:22:37 +02:00

Merge pull request #4 from nickvergessen/naderman-ticket/13232

[ticket/13232] Fix more issues with TTL and global cache file
This commit is contained in:
Nils Adermann
2014-10-27 16:36:39 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ class local extends \phpbb\avatar\driver\driver
*/ */
protected function get_avatar_list($user) protected function get_avatar_list($user)
{ {
$avatar_list = ($this->cache == null) ? false : $this->cache->get('avatar_local_list'); $avatar_list = ($this->cache == null) ? false : $this->cache->get('_avatar_local_list');
if ($avatar_list === false) if ($avatar_list === false)
{ {
@@ -192,7 +192,7 @@ class local extends \phpbb\avatar\driver\driver
if ($this->cache != null) if ($this->cache != null)
{ {
$this->cache->put('avatar_local_list', $avatar_list, 86400); $this->cache->put('_avatar_local_list', $avatar_list, 86400);
} }
} }

View File

@@ -239,7 +239,7 @@ class version_helper
*/ */
public function get_versions($force_update = false, $force_cache = false) public function get_versions($force_update = false, $force_cache = false)
{ {
$cache_file = 'versioncheck_' . $this->host . $this->path . $this->file; $cache_file = '_versioncheck_' . $this->host . $this->path . $this->file;
$info = $this->cache->get($cache_file); $info = $this->cache->get($cache_file);