Skip to content

Commit

Permalink
Merge pull request #400 from CanastaWiki/special-random-fix
Browse files Browse the repository at this point in the history
Special:Random is cached
  • Loading branch information
hexmode authored May 6, 2024
2 parents e3428b7 + 98fd549 commit d0f8559
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _sources/configs/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ sub vcl_recv {
if (req.url ~ "/w/api.php") {
return(pass);
}


# Bypass cache for "Special:Random"
if (req.url ~ "^/(w/index\.php\?title=|wiki/)Special:Random") {
return (pass);
}

call mobile_detect;

# Pass requests from logged-in users directly.
Expand Down

0 comments on commit d0f8559

Please sign in to comment.