mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-28 01:20:10 +00:00
minor stylize
This commit is contained in:
parent
153cd40ef1
commit
fd95eaf9cf
8
RSS.php
8
RSS.php
|
@ -227,12 +227,12 @@ class RSS {
|
||||||
function storeInCache( $key ) {
|
function storeInCache( $key ) {
|
||||||
global $wgMemc, $wgRSSCacheAge;
|
global $wgMemc, $wgRSSCacheAge;
|
||||||
|
|
||||||
if( !isset( $this->rss ) ) {
|
if ( !isset( $this->rss ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$wgMemc->set($key,
|
$wgMemc->set( $key,
|
||||||
serialize( array($this->etag, $this->lastModified, $this->rss) ),
|
serialize( array( $this->etag, $this->lastModified, $this->rss ) ),
|
||||||
$wgRSSCacheAge);
|
$wgRSSCacheAge );
|
||||||
|
|
||||||
wfDebugLog( 'RSS', "Stored '$key' in cache" );
|
wfDebugLog( 'RSS', "Stored '$key' in cache" );
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue