Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12415 closed Patch - Bug Fix (fixed)

Mythweb program details popup shows stale data

Reported by: Alex Tomlins <alex@…> Owned by: Karl Egly
Priority: minor Milestone: 0.27.5
Component: Plugin - MythWeb Version: 0.27.4
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Due to the way the cache headers are set for these requests, the responses are being cached until 10 days beyond the program start time. This means that any updates to the program details won't be shown.

I've submitted a pull-request (https://github.com/MythTV/mythweb/pull/13) to reduces the cache time to 2 hours, which seems like a reasonable time to cache for, yet still get timely updates.

Change History (5)

comment:1 Changed 5 years ago by Karl Dietz <dekarl@…>

Resolution: fixed
Status: newclosed

In 2c8b3c4f901da249f6bb944d16d18d5b21ee63eb/mythweb:

Merge remote-tracking branch 'alext/fix_ajax_popup_cache_headers' into HEAD

Fixes #12415

comment:2 Changed 5 years ago by Karl Egly

Milestone: unknown0.28
Owner: changed from Rob Smith to Karl Egly

comment:3 Changed 5 years ago by Alex Tomlins <alex@…>

Is there any chance this could be backported to 0.27-fixes?

thanks, Alex

comment:4 Changed 5 years ago by Alex Tomlins <alex@…>

In c50228f1b8505ca5d4420ae5a696b08d4fb9c909/mythweb:

Reduce cache headers for program details ajax popup.

As it stands, these are being set to 10 days beyond the program start
time. This means that mythweb will often show stale data for programs
that have been updated since they were initially added to the guide.

This reduces the cache time to 2 hours, which seems like a reasonable
time to cache for, yet still get timely updates.

Fixes #12415

(cherry picked from commit 97a33211bd8d4dee6e0badb88760f07d66fe5d40)

comment:5 Changed 5 years ago by Karl Egly

Milestone: 0.280.27.5
Note: See TracTickets for help on using tickets.