User:AnomieBOT/source/tasks/OnThisDayTagger.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: AnomieBOT::API: * Add support for non-persistent caching (i.e. memcached). d::IWNS, d::Nowiki, d::Redirects, d::WikiProjectTagging: * Use new cache support instead of caching things in memory. FlagIconRemover, IFDCloser, Nob...
AnomieBOT (talk | contribs)
Updating published sources: AnomieBOT::API::Cache::Redis: * Catch errors from Redis. AnomieBOT/API/Cache/test.pl: * Set $Data::Dumper::Sortkeys so comparisons are sane.
Line 692:
 
$wikitext=_unstrip_templates($wikitext,$data);
my $tagtmp ="\x02".sha256_base64( $wikitext)."\x03";
utf8::encode( $tmp ) if utf8::is_utf8( $tmp );
my $tag="\x02".sha256_base64($tmp)."\x03";
$tag=~tr!+/=!-_!d;
$data->{$tag}=$wikitext;