Permalink
Browse files

Bringing project up to date with live version at cablegatesearch.net

  • Loading branch information...
1 parent d860c76 commit ada934db2391e6d28139c55e26a96ea6cd6691ff @gorhill committed Aug 31, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 cacher.php
View
@@ -5,8 +5,8 @@
$CACHER_EXCLUDE_IPS_REGEX = '';
$CACHER_DISABLED = false;
-$CACHER_MAXITEMS_LO = 2900;
-$CACHER_MAXITEMS_HI = 3000;
+$CACHER_MAXITEMS_LO = 19000;
+$CACHER_MAXITEMS_HI = 20000;
$CACHE_HANDLE = false;
$CACHE_DIR = $_SERVER['DOCUMENT_ROOT'] . '/cache/';
@@ -45,6 +45,7 @@ function cache_get_sentinel_time() {
return $sentinel_time;
}
@touch($sentinel_path);
+ @chmod($sentinel_path, 0666);
return time();
}
@@ -179,7 +180,7 @@ function db_close_compressed_cache() {
}
}
-function db_get_compressed_cache($cache_id, $maxSeconds=0) {
+function db_get_compressed_cache($cache_id, $maxSeconds = 0) {
$fullpath = cache_id_to_fullpath($cache_id);
if ( !($gzip_content = @file_get_contents($fullpath)) ) {
return null;

0 comments on commit ada934d

Please sign in to comment.