Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php |
— | — | @@ -31,26 +31,13 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | function transform( $params, $flags = 0 ) { |
35 | | - global $wgMemc; |
36 | 35 | $thumbUrl = $this->repo->getThumbUrl( |
37 | 36 | $this->getName(), |
38 | 37 | isset( $params['width'] ) ? $params['width'] : -1, |
39 | 38 | isset( $params['height'] ) ? $params['height'] : -1 ); |
40 | 39 | if( $thumbUrl ) { |
41 | | - if ( $this->repo->useLocalCache ) { |
42 | | - wfDebug("Attempting to get the thumb from the cache..."); |
43 | | - $key = md5($thumbUrl); |
44 | | - $obj = $wgMemc->get($key); |
45 | | - if ($obj) { |
46 | | - wfDebug("success!\n"); |
47 | | - return $obj; |
48 | | - } |
49 | | - wfDebug("miss\n"); |
50 | | - } |
51 | | - $res = $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );; |
52 | | - if ( $res && $this->repo->useLocalCache ) $wgMemc->set( $key, $res, $this->repo->localCacheExpiry ); |
53 | 40 | wfDebug( __METHOD__ . " got remote thumb $thumbUrl\n" ); |
54 | | - return $res; |
| 41 | + return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );; |
55 | 42 | } |
56 | 43 | return false; |
57 | 44 | } |