Asher Densmore-Lynn
10/13/2022, 4:24 PMzackster
10/13/2022, 4:29 PMAsher Densmore-Lynn
10/13/2022, 4:31 PMSELECT fields
FROM tables
WHERE userKey = 47
Then there's an update, and then in that same request we could...
SELECT fields
FROM tables
WHERE userKey = 47
/* cachebuster */
But the next request, the next page load, won't have the same cachebuster. It'll reprise the first query and that's still wrong.Asher Densmore-Lynn
10/13/2022, 4:34 PMzackster
10/13/2022, 4:34 PMAsher Densmore-Lynn
10/13/2022, 4:35 PMzackster
10/13/2022, 4:37 PMAsher Densmore-Lynn
10/13/2022, 4:47 PMMatt Dyer
10/13/2022, 5:36 PMwebsolete
10/13/2022, 6:29 PMsession.cacheToken = gettickcount();
and have it be passed into the relevant queries so it's appended as AND #arguments.cacheToken# = #arguments.cacheToken#
. that way it won't affect the query and you can force it to recache by simply setting a new gettickcount() to the session. personally i prefer leveraging ehCache or the like over the built in cachedWithin attributes, more controlAsher Densmore-Lynn
10/13/2022, 6:49 PMAsher Densmore-Lynn
10/13/2022, 6:54 PM