Closed (fixed)
Project:
Examples for Developers
Version:
8.x-1.x-dev
Component:
Tablesort Example
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2016 at 15:57 UTC
Updated:
19 Jun 2017 at 23:15 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
alex_optimThe problem was that the page with table, was cached for non-admin user.
Comment #3
alex_optimComment #4
rfayWorks perfectly.
Rather than removing cache, isn't there a way to cache with URL args?
If not, this is definitely RTBC. After this lands the PHPUnit test in #2821387: Convert all tests to BrowserTestBase can have the cache clears removed from it.
Comment #5
mile23After #2821387: Convert all tests to BrowserTestBase we need to modify the test so it doesn't use
drupal_flush_all_caches(), and also so it tries to do the sorting behavior as an anonymous user.Comment #6
mile23#2821387: Convert all tests to BrowserTestBase is in, so we can resume here.
Needs a test where we perform the sort as an anonymous user.
Needs to remove calls to
drupal_flush_all_caches()from tests.There might also be a better set of cache options, but I don't know what they'd be.
Comment #7
navneet0693 commentedComment #8
navneet0693 commentedComment #10
mile23In an ideal world, we'd figure out a cache directive that suits this use case, but
no_cacheworks too.Thanks!