Last Modified time inaccurate
-
Hello,
Firstly, great plugin. Thank you.
I’ve just built a website for a friend – https://bittybot.co.uk/ – and am having trouble getting the date modified time of the table to be accurate, to show the actual time the data was modified.
Setup: Every five minutes my friend’s home server uploads a .csv file to my server and TablePress auto imports it (I’ve modified the plugin code from the default 15 minutes). This works well.
The issue I’m having is that the last modified time of the table is being set to/displayed as the time that wp-cron.php fires and not the actual time the table was modified. At the moment I have wp-cron.php disabled in wp-config.php and am manually calling wp-cron.php via a real cronjob every few minutes but again the last modified time is set to the time of the cronjob and not the time the table was modified (occasionally my friend’s server won’t upload the .csv file and no data will change in the table but the last modified time will still show that it was modified because it’s using the time wp-cron.php is fired). If I enable wp-cron.php in wp-config.php the last modified time is displayed as the time of the page load because page loads fire wp-cron.php.
Any idea why this is happening? The nature of the data means that an accurate last modified time is important.
Here’s the shortcode I’m currently using:
[table-info id=1 field="last_modified" format="human" /]
Thanks.
- The topic ‘Last Modified time inaccurate’ is closed to new replies.