Index: trunk/extensions/wikihiero/SpecialHieroglyphs.php |
— | — | @@ -73,7 +73,11 @@ |
74 | 74 | private function listHieroglyphs() { |
75 | 75 | global $wgMemc; |
76 | 76 | |
77 | | - $key = wfMemcKey( 'hiero-list', $this->getContext()->getLang()->getCode() ); |
| 77 | + $key = wfMemcKey( 'hiero-list', |
| 78 | + $this->getContext()->getLang()->getCode(), |
| 79 | + WikiHiero::getImagePath(), |
| 80 | + WIKIHIERO_VERSION |
| 81 | + ); |
78 | 82 | $html = $wgMemc->get( $key ); |
79 | 83 | if ( $html ) { |
80 | 84 | return $html; |
Index: trunk/extensions/wikihiero/wikihiero.body.php |
— | — | @@ -469,6 +469,13 @@ |
470 | 470 | } |
471 | 471 | |
472 | 472 | /** |
| 473 | + * @return string: URL of images directory |
| 474 | + */ |
| 475 | + public static function getImagePath() { |
| 476 | + return WH_IMG_DIR; |
| 477 | + } |
| 478 | + |
| 479 | + /** |
473 | 480 | * Get glyph code from file name |
474 | 481 | * |
475 | 482 | * @param $file string: file name |