We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 29 Aug, 2013 2 commits
  2. 19 Aug, 2013 1 commit
    • mattl's avatar
      Don't use DB_DataObject::factory (statically at least) · 0785cc24
      mattl authored
      Not all instances of this has been fixed, but at least the ones
      in the base class of Memcached_DataObject.
      Avatar fix (in classes/Profile.php) requires a pkeyGet function
      in the Avatar class (or as in this tree, the parent class of
  3. 18 Aug, 2013 4 commits
    • mattl's avatar
      Managed_DataObject now has listGet for all classes · 97ce71e5
      mattl authored
    • mattl's avatar
    • mattl's avatar
      pkeyGet is now static and more similar to getKV · 861e838a
      mattl authored
      Memcached_DataObject now defines
         * pkeyGetClass to avoid collision with Managed_DataObject pkeyGet
         * getClassKV to avoid collision with Managed_DataObject getKV
    • mattl's avatar
      The overloaded DB_DataObject function staticGet is now called getKV · 2a4dc77a
      mattl authored
      I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV
         sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)
      If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!
      This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)
      Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
  4. 12 Aug, 2013 1 commit
    • mattl's avatar
      staticGet is a static function · 3394efca
      mattl authored
      We always call staticGet statically, so we define it statically. Next
      step is to remove a bunch of definitions of 'staticGet' from classes
      that can instead fall back to a parent class in Managed_DataObject.
      The ampersand is removed as we're returning a class anyway, which does
      not need a reference (and when we return false, it means nothing).
  5. 30 Aug, 2011 3 commits
  6. 24 Aug, 2011 1 commit
  7. 23 Aug, 2011 1 commit
  8. 19 Aug, 2011 1 commit
  9. 08 Aug, 2011 2 commits
    • Evan Prodromou's avatar
      Corrected pkeys for listGet() · f405ffa5
      Evan Prodromou authored
    • Evan Prodromou's avatar
      Store pkeys in cache for listGet() · ed31052d
      Evan Prodromou authored
      I was storing the full objects in the cache for the listGet()
      function. I've changed it to store only pkeys, and use pivotGet() to
      get all the corresponding values.
      This also required changing pivotGet() so it can get objects with
      multi-column pkeys, which complicated the whole thing quite a bit. But
      it seems to work OK.
  10. 02 Aug, 2011 5 commits
  11. 14 Jul, 2011 2 commits
  12. 11 Jul, 2011 1 commit
  13. 11 Apr, 2011 1 commit
  14. 22 Mar, 2011 1 commit
    • Evan Prodromou's avatar
      Mass replacement of #-comments with //-comments · 83fb5e60
      Evan Prodromou authored
      like leprous boils in our code. So, I've replaced all of them with //
      comments instead. It's a massive, meaningless, and potentially buggy
      change -- great one for the middle of a release cycle, eh?
  15. 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)
    • Brion Vibber's avatar
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so... · 54f7154d
      Brion Vibber authored
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so TIMESTAMP column values are comparable against our other UTC timestamp values.
      MySQL stores TIMESTAMP columns as UTC, but with a local time interface. (SRSLY?!) DATETIME columns are always bare and assumed to be local time, but we keep only UTC in them.
      Forcing the session time_zone to UTC means we won't have to worry as much about what we're sending/receiving in there.
      Also will let us remove the hack in master commit a7abb232 for session tweaks
  16. 27 Dec, 2010 1 commit
  17. 17 Dec, 2010 1 commit
  18. 15 Oct, 2010 1 commit
  19. 28 Sep, 2010 1 commit
  20. 06 Sep, 2010 3 commits
  21. 06 Aug, 2010 1 commit
    • Brion Vibber's avatar
      OStatus/FeedSub: tweaked PuSH feed garbage collection so other plugins can... · 7e55fc00
      Brion Vibber authored
      OStatus/FeedSub: tweaked PuSH feed garbage collection so other plugins can declare usage of a low-level feed or an OStatus profile besides profile subscriptions & group memberships.
      SubMirror: redid add-mirror frontend to accept a feed URL, then pass that on to OStatus, instead of pulling from your subscriptions.
      Profile: tweaked subscriberCount() so it doesn't subtract 1 for foreign profiles who aren't subscribed to themselves; instead excludes the self-subscription in the count query.
      Memcached_DataObject: tweak to avoid extra error spew in the DB error raising
      Work in progress: tweaking feedsub garbage collection so we can count other uses
  22. 30 Jul, 2010 1 commit
  23. 29 Jul, 2010 1 commit
  24. 14 Jul, 2010 1 commit
  25. 04 Jun, 2010 1 commit