Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh assetHash on theme activation #7457

Merged
merged 1 commit into from Sep 29, 2016

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Sep 29, 2016

Ok, this is YAFPR* for theme refreshes.

Sooo @kevinansfield pointed out to me that the reason people were probably still struggling with theme refreshes is that we don't clear asset hashes on theme activation. I'd been focused on overrides, because they were the new feature.

Theme activation has been a feature forever, but of course, on Ghost(Pro) we limit people to 1 theme at a time, so they have had to upload a new theme (which involved a full restart & cache-clear) in between activations. Clearly no one else is using the power combo of heavy caching & flipping between themes to detect this bug 馃槺

The fix is soooo tiny, I'd really like someone else to take a look at this to see if I'm not missing something else. @kirrg001 & @kevinansfield any thoughts? Reckon I've got it this time? 馃檹

closes #7423

  • asset hashes have never been refreshed properly!
  • Ghost(Pro)'s 1-theme-only limitation has been hiding this bug for 3 years 馃檮

* Fix or Fucking, take your pick 馃榿

closes TryGhost#7423

- asset hashes have never been refreshed properly!
- Ghost(Pro)'s 1-theme-only limitation has been hiding this bug for 3 years 馃檮
@ErisDS ErisDS added the LTS label Sep 29, 2016
@ErisDS ErisDS added this to the 0.11.1 milestone Sep 29, 2016
@@ -60,6 +60,8 @@ themeHandler = {

// clear the view cache
blogApp.cache = {};
// reset the asset hash
config.assetHash = null;

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Contributor

@kevinansfield kevinansfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤 LGTM

@kirrg001
Copy link
Contributor

tested and works 馃憤

@kirrg001 kirrg001 merged commit bca3e1f into TryGhost:lts Sep 29, 2016
@ErisDS ErisDS removed the LTS label Oct 7, 2016
yo1dog pushed a commit to yo1dog/Ghost that referenced this pull request Oct 14, 2016
closes TryGhost#7423

- asset hashes have never been refreshed properly!
- Ghost(Pro)'s 1-theme-only limitation has been hiding this bug for 3 years 馃檮
@ErisDS ErisDS deleted the fix-7423-part2-lts branch March 1, 2017 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants