https://bugzilla.wikimedia.org/show_bug.cgi?id=22332

           Summary: MW memcached driver should fall back to PHP's built-in
                    memcached module if available
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: roan.katt...@gmail.com


Presumably, PHP's memcached module (which caused the memcached class to be
renamed to MWMemcached because of a naming conflict) is faster than our PHP
implementation and supports the same actions.

We should write a wrapper class around the built-in memcached class that
coexists with MWMemcached and have wfGetCache() choose which one to instantiate
based on class_exists('memcached') .

In the longer term, we should rewrite this horrible infrastructure and have all
cache interface classes inherit one abstract class, and move wfGetCache()'s
functionality to a static method in that abstract class. We could also have
each cache interface class implement isAvailable() so we can move the
class_exists('memcached') check to a more logical place.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to