Skip to content

Add cache layer for ActivityCell boxes#7967

Merged
mrcasals merged 2 commits intodecidim:developfrom
i-need-another-coffee:add-cache-for-activity-cell
May 10, 2021
Merged

Add cache layer for ActivityCell boxes#7967
mrcasals merged 2 commits intodecidim:developfrom
i-need-another-coffee:add-cache-for-activity-cell

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented May 7, 2021

🎩 What? Why?

This PR adds cache to the ActivityCell cell.

📌 Related Issues

None.

Testing

Ensure CI is green.

Comment thread decidim-core/app/cells/decidim/activity_cell.rb Outdated
@alecslupu alecslupu force-pushed the add-cache-for-activity-cell branch from 2552f8b to c450cb6 Compare May 7, 2021 19:00
def cache_hash
hash = []
hash << model.class.name.underscore
hash << I18n.locale.to_s
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since #7943 we don't need to specify the locale in the cache key! 😄 Could you remove it, please? @alecslupu

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mrcasals Changes done. Branch updated with the latest changes on develop.

@alecslupu alecslupu force-pushed the add-cache-for-activity-cell branch from c450cb6 to 67e0461 Compare May 10, 2021 11:37
@mrcasals mrcasals marked this pull request as ready for review May 10, 2021 12:55
@mrcasals mrcasals merged commit 08e4a44 into decidim:develop May 10, 2021
entantoencuanto added a commit that referenced this pull request May 12, 2021
…ions

* develop: (23 commits)
  New Crowdin updates (#8001)
  Fix editor when formatting starts with a linebreak (#7999)
  Polling station officer ballot count (#7823)
  New Crowdin updates (#7995)
  Election log (#7923)
  New Crowdin updates (#7988)
  Fixing failing tests on develop branch (#7991)
  Add notes to changelog (#7987)
  Add 2 additional queues for a better scalling of the application (#7986)
  Add announcements to assemblies (#7971)
  Display meetings count in directory page (#7972)
  Touch the reportable object when is hidden to reset caches (#7966)
  Hide moderated meetings and proposals from admin lists (#7974)
  Hide moderated proposals from comparator (#7975)
  Add comment count to the proposal cache (#7965)
  Simplify SQL query for endorsement stats (#7973)
  Show confirmation modal when leaving a meeting (#7970)
  Fix: #7889 - Each comment in a meeting generates a new version of the meeting (#7978)
  Add cache layer for ActivityCell boxes (#7967)
  New Crowdin updates (#7980)
  ...
@alecslupu alecslupu deleted the add-cache-for-activity-cell branch July 19, 2021 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants