Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Fixed an album JSON cache update bug
Browse files Browse the repository at this point in the history
Since introducing the editing of year albums, there’s been a bug where
the system wasn’t updating the JSON cache of that album.
  • Loading branch information
deanmoses committed Mar 29, 2017
1 parent 28872ab commit 63d53eb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/scripts/components/album.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,18 @@ var EditMenu = React.createClass({
return;
}

// If it's a year album, hit the PHP that triggers refreshing the album's cache on the server.
// Don't bother looking at response; there's nothing we can do if it fails.
$.ajax({
type: 'POST',
url: 'https://tacocat.com/p_json/refresh.php',
cache: false,
dataType: 'json',
data: {
album: this.props.album.path
}
});

// Hit the PHP that triggers refreshing the parent album's cache on the server.
// Don't bother looking at response; there's nothing we can do if it fails.
$.ajax({
Expand Down

0 comments on commit 63d53eb

Please sign in to comment.