Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Page Caching

Just some help info for others regarding Page caching..
Use Singe Page Template design (Don't tick the Multi-page Template)

Select your screen.. In the Tiggzi design view click off the design page area and click the "More Properties" button.
For all pages you want to keep cached...
Add= data-dom-cache then set value to true.
For all pages you DONT want to cache...
Add= data-dom-cache then set value to false.

Now to override those properties during page navigation...
Use Custom Js.
Tiggzi.navigateTo('pageuWant',{ transition: 'none', reloadpage: true});
The reloadpage: true will force reload(clearing page cache) of the page(screen) your calling.
This will even force a reload of your start page which is ALWAYS cached...

Use Normal Tiggzi.navigateTo('pageuWant',{ transition: 'none'}); or the Built-in Tiggzi screen navigation event for changing screens. This will allow the Properties that you set above to determine whether or not to cache the page..

Keep in Mind that Jquery always keeps current and previous screen cached for quick navigation and history usage.

I hope this helps others trying to deal with caching issues.

Return to “Issues”