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

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

This widget could not be displayed.

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
});

}

 

This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

512 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you