Skip to content
Snippets Groups Projects

Issue #3439909 by SolimanHarkas, vensires: Fix Taxonomy tests that rely on...

Open Issue #3439909 by SolimanHarkas, vensires: Fix Taxonomy tests that rely on...
1 unresolved thread
1 unresolved thread

Issue #3439909 by SolimanHarkas, vensires: Fix Taxonomy tests that rely on UID1's super user behavior

(cherry picked from commit 0894355a)

Closes #3447821

Merge request reports

Members who can merge are allowed to add commits.
Code Quality is loading
Test summary results are being parsed
Metrics reports are loading
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
78 84 try {
79 85 // Retrieve the permissions from the static cache if available.
80 86 if ($static_cache = $this->variationStatic->get($cache_keys, $initial_cacheability)) {
87 // @todo How to handle this?
  • There are three cases where a result is returned from this method:

    1. There is no cached result, so it is computed fresh.
    2. There is a cached result from a different request.
    3. There is a cached result from the current request.

    The first case doesn't matter, because the cache will be guaranteed to have the correct max age. You've already taken care of the second case which is functionally similar to the DPC/render cache changes. The third case will implicitly be correct as long as the other cases are both correct.

    I don't think we need to do anything special here.

  • Clay Freeman changed this line in version 11 of the diff

    changed this line in version 11 of the diff

  • Please register or sign in to reply
  • Clay Freeman added 1041 commits

    added 1041 commits

    • c22cf51b...05b8266c - 1035 commits from branch project:11.x
    • 47eb8c77 - Initial exploration of setting correct max-age on cache records.
    • 547bdc4b - When calculating max-age the code should use: expire-time minus current time.
    • 8481bb34 - Mock the added time argument to the accesspolicy tests
    • 2a991a1e - Fix cs
    • dc1dc1b3 - Update deprecation message
    • 70cb8ebf - round out access policy processor max age adjustment

    Compare with previous version

  • Please register or sign in to reply
    Loading