Is it possible to reload the query, but not using the cache?

Jeroen van der Hoek July 14, 2017

I'm using dynamic loading in Pocketquey 3.2.0. It is possible to load fresh data from the server when a user the reload button? Right now it's reloading data from the cache.

2 answers

1 accepted

0 votes
Answer accepted
Jeroen van der Hoek July 24, 2017

Found a solution:

function reload (  ) {

// Find index of the dynamic load data
var dataIndex = AJS.$(".pocketquery-dynamic-load-container .pocketquery-result").index( pocketQueryContainer.eq(0) );
var pqMetaData = PocketQuery.getDynamicLoadData(dataIndex);

// Add parameter to bypass the cache
pqMetaData.parameters += "&xNUtimestamp=" + ( new Date () ).getTime();

PocketQuery.load({
container: AJS.$(pocketQueryContainer).closest(".pocketquery-dynamic-load").eq(0),
data: pqMetaData
});

}

 

0 votes
Sven Schatter _Lively Apps_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 11, 2017

Hey Jeroen,

Great to see that you could solve the problem by yourself! Just letting you know that we have basically moved our support to our service desk for PocketQuery.

Should you encounter any other problems using PocketQuery, please don't hesitate to raise a ticket at our service desk.

Thank you for using PocketQuery!

Best regards,
Sven (Scandio)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events