Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9875

Cache plugin refactoring

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.0.7-PL1
    • Caching (ACM)
    • None

      Cache (ACM) plugins currently define a class named 'acm' which is then extended by the 'cache' class that makes use of the cache functionality.

      This is bad design and leads to problems with extensibility (you cannot extend a plugin). It also leads to problems with facebook's HPHP (aka hiphop) because there are multiple classes with the same name.

      Cache plugins should implement a common interface, have their own class name (ideally autoloaded). The 'cache' class should take an instance of the cache plugin and can provide a __call() delegate/proxy fallback for backward-compatibility.

            igorw Igor Wiedler [X] (Inactive)
            igorw Igor Wiedler [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: