Merge "Add ability to filter based on rc_title in API"
[lhc/web/wiklou.git] / includes / content / ContentHandler.php
index eab3afb..3cfac8f 100644 (file)
@@ -332,6 +332,13 @@ abstract class ContentHandler {
                return self::$handlers[$modelId];
        }
 
+       /**
+        * Clean up handlers cache.
+        */
+       public static function cleanupHandlersCache() {
+               self::$handlers = [];
+       }
+
        /**
         * Returns the localized name for a given content model.
         *