Custom Query (307 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (10 - 12 of 307)

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Ticket Resolution Summary Owner Reporter
#337 fixed Files cached incorrectly between vhosts moo davidh87
Description

Hi,

I have multiple branches of the same project running on separate vhosts, with URLs such as trunk.localhost/, test1.localhost/. Due to the branches being for the same projects, most of the files have the same names.

Starting from a cleared PHP cache, loading one project works fine and relevant files are cached. Loading the second project then fails - the initially accessed index.php file is loaded and cached correctly, but any require'd PHP files are the cached versions of the other vhost's files.

Disabling the PHP cache yields the correct results for both vhosts.

Have also tried and confirmed that browser cache is not the issue.

#335 invalid whitelist auth for admin functions moo godog
Description

Hi, thanks for xcache!

I was trying to get some stats out and was wondering if some of the admin functions could be whitelisted (say via config, via a list of functions) to not require auth, e.g. if you are trying to get statistics out (say towards a monitoring platform) then they are effectively read-only (xcache_count and xcache_info). Whitelist rationale being that calling these functions just gets data out.

thanks!

I've come up with sth like this:

$EXPORTED_STATS = array(
  "compiling", "disabled", "misses", "hits", "clogs",
  "ooms", "errors", "cached", "deleted", "size", "avail"
);

function xcache_type_stats($type) {
  global $EXPORTED_STATS;

  $total = array();
  $type_stats = array();

  for ($i = 0; $i < xcache_count($type); $i++) {
    $type_stats[] = xcache_info($type, $i);
  }

  foreach($type_stats as $unused => $type_stat) {
    foreach($type_stat as $k => $v) {
      if(!in_array($k, $EXPORTED_STATS)) {
        continue;
      }

      if(!isset($total[$k])) {
        $total[$k] = 0;
      }
      $total[$k] += $v;
    }
  }
  return $total;
}
#334 invalid XCache: Cannot create shm in Unknown on line 0 moo snetts
Description

Hello,

I have Xcache installed on my site and I keep getting this error each time the page reloads. I guess you know what this means, I have an error log that is very big and I have to delete it all the time.

When I check the log this is what I find:

Unknown on line 0 [14-Dec-2013 19:08:03] PHP Fatal error: XCache: Cannot create shm in Unknown on line 0 [14-Dec-2013 19:08:03] PHP Fatal error: XCache: Cannot init in Unknown on line 0

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Note: See TracQuery for help on using queries.