1. 26 Jul, 2011 1 commit
  2. 07 May, 2011 1 commit
  3. 03 Apr, 2011 2 commits
  4. 31 Jan, 2011 2 commits
    • Brion Vibber's avatar
      Performance counters: records number of total and unique cache... · de7726dd
      Brion Vibber authored
      Performance counters: records number of total and unique cache get/set/incr/deletes and queries, and logs to syslog.
      
      $config['site']['logperf'] = true; // to record & dump total hits of each type and the runtime to syslog
      $config['site']['logperf_detail'] = true; // very verbose -- dump the individual cache keys and queries as they get used (may contain private info in some queries)
      
      Seeing 180 cache gets on a timeline page seems not unusual currently; since these run in serial, even relatively small roundtrip times can add up heavily.
      We should consider ways to reduce the number of round trips, such as more frequently storing compound objects or the output of processing in memcached.
      Doing parallel multi-key lookups could also help by collapsing round-trip times, but might not be easy to fit into SN's object model. (For things like streams this should actually work pretty well -- grab the list, then when it's returned go grab all the individual items in parallel and return the list)
      de7726dd
    • Evan Prodromou's avatar
      ca4bf541
  5. 04 Jan, 2011 1 commit
  6. 27 Nov, 2010 1 commit
  7. 26 Nov, 2010 1 commit
  8. 19 Nov, 2010 1 commit
  9. 21 Oct, 2010 1 commit
  10. 07 Sep, 2010 1 commit
  11. 04 Sep, 2010 1 commit
  12. 08 Jun, 2010 1 commit
  13. 27 May, 2010 1 commit
  14. 28 Apr, 2010 2 commits
  15. 18 Apr, 2010 2 commits
  16. 22 Mar, 2010 1 commit
  17. 16 Mar, 2010 3 commits
    • Brion Vibber's avatar
      Pull back for now on switch of PEAR error mode to exceptions; seems to trigger... · f62b8a80
      Brion Vibber authored
      Pull back for now on switch of PEAR error mode to exceptions; seems to trigger out exceptions at various times we don't want them.
      
      For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null.
      Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131
      
      Revert "Don't attempt to retrieve the current user from the DB while processing a DB error"
      
      This reverts commit 68347691.
      
      Revert "Use PHP exceptions for PEAR error handling."
      
      This reverts commit d8212977.
      f62b8a80
    • Brion Vibber's avatar
      Pull back for now on switch of PEAR error mode to exceptions; seems to trigger... · 88f66131
      Brion Vibber authored
      Pull back for now on switch of PEAR error mode to exceptions; seems to trigger out exceptions at various times we don't want them.
      
      For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null.
      Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131
      
      Revert "Don't attempt to retrieve the current user from the DB while processing a DB error"
      
      This reverts commit 68347691.
      
      Revert "Use PHP exceptions for PEAR error handling."
      
      This reverts commit d8212977.
      88f66131
    • Jeffery To's avatar
      Fixed IE7 prompting the user to download OpenSearch description xml after... · fa1262f5
      Jeffery To authored
      Fixed IE7 prompting the user to download OpenSearch description xml after login (for a private site)
      
      Flow:
      1. Browser (IE7) is redirected to the login page.
      2. Browser reads the page, sees OpenSearch descriptions, tries to
         download them. Each request gets recorded by SN as the page the user
         should be redirected to after logging in (returnto).
      3. User logs in, then gets redirected to the returnto action, which is
         an OpenSearch description.
      
      The OpenSearch descriptions aren't sensitive so making them public in a
      private site should be okay.
      
      (I recall fixing this in 0.8.x... :-( )
      fa1262f5
  18. 03 Mar, 2010 3 commits
  19. 02 Mar, 2010 2 commits
  20. 31 Jan, 2010 1 commit
    • Evan Prodromou's avatar
      Add a robots.txt URL to the site root · dc622464
      Evan Prodromou authored
      Adds a robots.txt file to the site root. Defaults defined by
      'robotstxt' section of config. New events StartRobotsTxt and
      EndRobotsTxt to let plugins add information. Probably not
      useful if path is not /, but won't hurt anything, either.
      dc622464
  21. 28 Jan, 2010 5 commits
  22. 14 Jan, 2010 1 commit
  23. 12 Jan, 2010 1 commit
  24. 18 Dec, 2009 1 commit
  25. 17 Nov, 2009 1 commit
    • Brion Vibber's avatar
      Fix ticket 1816: Database errors recorded as "Array" · 3d6a55a4
      Brion Vibber authored
      PEAR error backtrace lines are now correctly formatted as strings in debug log, roughly as debug_print_backtrace() does (but with argument values swapped out for types to avoid being overly verbose).
      
      Todo: exceptions and PEAR error objects should log backtraces the same way; right now it doesn't look like exceptions get backtraces logged.
      
      Todo: At one line per line, it's potentially tough to figure out what backtrace goes with what event if traffic is heavy; even if not heavy it's awkward to jump back into a log file after grepping to find the backtrace. Consider using a random per-event ID which can go in the log output -- bonus points for exposing the error ID to users so ops can track down actual error details in logs from a user report.
      3d6a55a4
  26. 13 Nov, 2009 1 commit
  27. 05 Nov, 2009 1 commit