Skip to content

Commit

Permalink
Suppress warnings related to deleting not-yet-cached files from APC's…
Browse files Browse the repository at this point in the history
… cache. They probably only appear once, but as they are not really bad, we can just as well suppress them.
  • Loading branch information
franzliedke committed Aug 9, 2010
1 parent a4fc0d5 commit 8199220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/cache.php
Expand Up @@ -33,7 +33,7 @@ function generate_config_cache()
fclose($fh);

if (function_exists('apc_delete_file'))
apc_delete_file(FORUM_CACHE_DIR.'cache_config.php');
@apc_delete_file(FORUM_CACHE_DIR.'cache_config.php');
}


Expand Down Expand Up @@ -61,7 +61,7 @@ function generate_bans_cache()
fclose($fh);

if (function_exists('apc_delete_file'))
apc_delete_file(FORUM_CACHE_DIR.'cache_bans.php');
@apc_delete_file(FORUM_CACHE_DIR.'cache_bans.php');
}


Expand Down Expand Up @@ -89,7 +89,7 @@ function generate_ranks_cache()
fclose($fh);

if (function_exists('apc_delete_file'))
apc_delete_file(FORUM_CACHE_DIR.'cache_ranks.php');
@apc_delete_file(FORUM_CACHE_DIR.'cache_ranks.php');
}


Expand Down Expand Up @@ -150,7 +150,7 @@ function generate_quickjump_cache($group_id = false)
fclose($fh);

if (function_exists('apc_delete_file'))
apc_delete_file(FORUM_CACHE_DIR.'cache_quickjump_'.$group_id.'.php');
@apc_delete_file(FORUM_CACHE_DIR.'cache_quickjump_'.$group_id.'.php');
}
}

Expand Down

0 comments on commit 8199220

Please sign in to comment.