Commit 2933d6b 1 parent 5a7a664 commit 2933d6b Copy full SHA for 2933d6b
File tree 2 files changed +19
-4
lines changed
memcached/modules/EnsEMBL/Web
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,27 @@ sub new {
62
62
sub set {
63
63
my ($self , $key , $value , $exptime ) = @_ ;
64
64
65
+ return unless $value ;
66
+
65
67
my $result = $self -> SUPER::set(md5_hex($key ), $value , $exptime );
66
68
67
69
$self -> _warn(sprintf ' MEMCACHED->set(%s): %s' , $key , $result ? ' DONE' : ' FAIL' );
68
70
69
71
return $result ;
70
72
}
71
73
74
+ sub set_raw {
75
+ my ($self , $key , $value , $exptime ) = @_ ;
76
+
77
+ return unless $value ;
78
+
79
+ my $result = $self -> SUPER::set($key , $value , $exptime );
80
+
81
+ $self -> _warn(sprintf ' MEMCACHED->set_raw(%s): %s' , $key , $result ? ' DONE' : ' FAIL' );
82
+
83
+ return $result ;
84
+ }
85
+
72
86
sub get {
73
87
my ($self , $key ) = @_ ;
74
88
Original file line number Diff line number Diff line change 58
58
memcached_send_timeout 50;
59
59
error_page 502 503 /errors;
60
60
61
- location ~* \.(jpg|jpeg|png|gif|js|css|txt|xml|csv|gff|fa|nh|gz|tar|zip|pdf|swf|jar|ico|htm)$ {
61
+ location ~* \.(jpg|jpeg|png|gif|js|css|txt|xml|csv|gff|fa|nh|gz|tar|zip|pdf|swf|jar|ico|htm|svg )$ {
62
62
expires 30d;
63
- set_md5 $md5_request_uri "[["$SiteDefs::ENSEMBL_PROXY_PROTOCOL:$SiteDefs:: ENSEMBL_STATIC_BASE_URL"]]$request_uri";
63
+ set_md5 $md5_request_uri "[["$SiteDefs::ENSEMBL_STATIC_BASE_URL"]]$request_uri";
64
64
set $memcached_key "nginx-$md5_request_uri";
65
65
memcached_pass memcached_servers;
66
66
error_page 404 502 = @fetch;
79
79
}
80
80
81
81
location /errors {
82
- [[ $SiteDefs::ENSEMBL_NGINX_EC2? '#' : '' ]]proxy_pass [["$SiteDefs::ENSEMBL_PROXY_PROTOCOL:$SiteDefs::ENSEMBL_BASE_URL"]]/errors/ensembl.html;
83
- [[ $SiteDefs::ENSEMBL_NGINX_EC2? '' : '#' ]]root /ensemblweb/www/server/ebi-plugins/amazonEC2/htdocs;
82
+ rewrite ^.*$ /Crash break;
83
+ [[ $SiteDefs::ENSEMBL_NGINX_EC2? '#' : '' ]]proxy_pass [["$SiteDefs::ENSEMBL_PROXY_PROTOCOL://$SiteDefs::ENSEMBL_SERVER:$SiteDefs::ENSEMBL_PORT"]];
84
+ [[ $SiteDefs::ENSEMBL_NGINX_EC2? '' : '#' ]]root /ensemblweb/www/server/ebi-plugins/amazonEC2/htdocs;
84
85
}
85
86
86
87
}
You can’t perform that action at this time.
0 commit comments