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

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

}

 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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