The table is automatically updated with new (or modified) data from the JSON file when the page is refreshed. Tables linked to an existing data source fetch all the rows, output the entire table to the front-end all at once, and then split it into pages using JavaScript; all data processing (page switching, sorting, filtering) is done on the client’s computer by JavaScript. The best option here would be to add meta refresh in order to refresh the page or create a custom script that would reload the table. This is a custom solution, and we don't have any examples of doing this. Custom solutions are not included in the plugin's support, so we can't help you with creating a script like this.
Tables can't be cached since they will not be pulling the new data from the JSON file, so I would advise you to prevent caching of this page through Lite Speed Cache to prevent these issues.
Can you help me with a JS code to automatically update the table (I have connected the table to the json file).
And can you help me about the cache, because every time I update I have to clear the cache ( Lite Speed Cache ) for the table
Hello again phạm
The table is automatically updated with new (or modified) data from the JSON file when the page is refreshed. Tables linked to an existing data source fetch all the rows, output the entire table to the front-end all at once, and then split it into pages using JavaScript; all data processing (page switching, sorting, filtering) is done on the client’s computer by JavaScript. The best option here would be to add meta refresh in order to refresh the page or create a custom script that would reload the table. This is a custom solution, and we don't have any examples of doing this. Custom solutions are not included in the plugin's support, so we can't help you with creating a script like this.
Tables can't be cached since they will not be pulling the new data from the JSON file, so I would advise you to prevent caching of this page through Lite Speed Cache to prevent these issues.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you for your support
I will follow your instructions.
Bbout cache lite speed, shall i exclude the url containing the table?
You're welcome, phạm
That's correct - exclude the URL that contains the table.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables