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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass user and shared params when checking for cache keys #26402

Merged
merged 3 commits into from May 10, 2024

Conversation

nikkothari22
Copy link
Contributor

User specific cache for redis_cache decorator was not working.

When checking for cache key existence, the user and shared params were not being passed to the exists function.

cc: @ankush

@nikkothari22 nikkothari22 requested a review from a team as a code owner May 10, 2024 12:24
@nikkothari22 nikkothari22 requested review from akhilnarang and removed request for a team May 10, 2024 12:24
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label May 10, 2024
@ankush ankush added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 and removed add-test-cases Add test case to validate fix or enhancement labels May 10, 2024
@ankush ankush enabled auto-merge (squash) May 10, 2024 12:33
@ankush ankush merged commit fb2753f into frappe:develop May 10, 2024
23 checks passed
mergify bot pushed a commit that referenced this pull request May 10, 2024
* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache

(cherry picked from commit fb2753f)

# Conflicts:
#	frappe/tests/test_caching.py
#	frappe/utils/caching.py
mergify bot pushed a commit that referenced this pull request May 10, 2024
* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache

(cherry picked from commit fb2753f)
ankush pushed a commit that referenced this pull request May 13, 2024
#26404)

* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache

(cherry picked from commit fb2753f)

Co-authored-by: Nikhil Kothari <nik.kothari22@live.com>
frappe-pr-bot pushed a commit that referenced this pull request May 14, 2024
# [15.27.0](v15.26.0...v15.27.0) (2024-05-14)

### Bug Fixes

* allow navigating to `Table MultiSelect` fields using tab ([496ae05](496ae05))
* cache github release data per bench (backport [#26382](#26382)) ([#26387](#26387)) ([6e8ef85](6e8ef85))
* **document_follow:** `following` was treated as a string not a boolean ([e0ecfc6](e0ecfc6))
* Increase folder link field size ([#26381](#26381)) ([#26384](#26384)) ([52c335c](52c335c))
* **integrations:** add back `response.raise_for_status()` ([13182e4](13182e4))
* make rename_doc work pre_model_sync ([#26419](#26419)) ([2db51ea](2db51ea))
* pass user and shared params when checking for cache keys ([#26402](#26402)) ([#26404](#26404)) ([a0eb7c1](a0eb7c1))

### Features

* functionality to assign users by user group ([#26044](#26044)) ([#26432](#26432)) ([c308931](c308931))

### Performance Improvements

* Don't update session in cache after every request ([#26308](#26308)) ([#26362](#26362)) ([c0ba12c](c0ba12c))
ankush pushed a commit that referenced this pull request May 21, 2024
#26403)

* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache

(cherry picked from commit fb2753f)

# Conflicts:
#	frappe/tests/test_caching.py
#	frappe/utils/caching.py

Co-authored-by: Nikhil Kothari <nik.kothari22@live.com>
frappe-pr-bot pushed a commit that referenced this pull request May 22, 2024
# [14.75.0](v14.74.1...v14.75.0) (2024-05-22)

### Bug Fixes

* "Not assigned" filter (backport [#26468](#26468)) ([#26469](#26469)) ([6bb3534](6bb3534))
* condition of event participants ([#26300](#26300)) ([#26455](#26455)) ([d940902](d940902))
* **contact list:** add space before designation ([a67ebab](a67ebab))
* Don't fiddle with child table indexes ([#26450](#26450)) ([#26452](#26452)) ([d0d6d93](d0d6d93))
* **DX:** Don't run CI if there are no tests (backport [#26457](#26457)) ([#26465](#26465)) ([d129c01](d129c01))
* enable fetch_from for Time fieldtype ([#25266](#25266)) ([#26471](#26471)) ([#26485](#26485)) ([9cd3bf6](9cd3bf6))
* **grid_row:** don't crash when undefined ([0f91073](0f91073))
* Ignore link doctype in comments ([#26484](#26484)) ([910d4a7](910d4a7))
* pass user and shared params when checking for cache keys ([#26402](#26402)) ([#26403](#26403)) ([30799f7](30799f7))
* preserve checked items after a search ([ae9cdd2](ae9cdd2))

### Features

* what's new (v15 port of [#21014](#21014)) (backport [#25986](#25986)) ([#26494](#26494)) ([6a561d9](6a561d9))

### Performance Improvements

* num2words, babel, gettext, sentry imports (backport [#26475](#26475)) ([#26476](#26476)) ([ea873fd](ea873fd))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants