Hello!
On 02/09/2018 10:27 AM, Sakirnth Nagarasa wrote:
[...] cache overrides the answer when doing the same
query inside the view. [...]
Yes, cache is shared and has no idea about other modules making these
kinds of difference between queries.
Is it even possible to do that?
The best I can immediately see is to disable caching for those views.
That's doable with action policy.FLAGS({'NO_CACHE', 'CACHED'}) where
the
first flag is pretty standard though undocumented way to disable reading
from cache, and the second is more of a hacky way to disable writing to
cache which I expect to work OK with STUB. Note that you want to put
this action before the STUB action, as STUB isn't a chain-rule (it stops
further rule processing).
--Vladimir