CanastaWiki / Canasta

MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
https://www.canasta.wiki
MIT License
36 stars 27 forks source link

Special:Random is cached #400

Closed hexmode closed 1 month ago

hexmode commented 2 months ago

Describe the bug

Summary: The redirect sent by Special:Random is cached

Description: Visiting Special:Random initially provides a random page. Subsequent visits to the page result in the same redirect. Adding a param (e.g., ?t=5) directs you to a new page but subsequent visits to Special:Random?t=5 end up on the same page.

Expected behavior

A new page every time Special:Random is visited.

jeffw16 commented 2 months ago

Uh oh... seems like Varnish is over eager?

cicalese commented 2 months ago

Maybe some of the discussion on https://github.com/CanastaWiki/Canasta/issues/252 is relevant?

github-actions[bot] commented 2 months ago

:whale: The image based on 98fd5493 commit has been built with 1.39.7-20240505-400 tag as ghcr.io/canastawiki/canasta:1.39.7-20240505-400

hexmode commented 2 months ago

252 is not relevant since this is just varnish caching results instead of a need to purge the cache when pages are updated (h/t @osnard).