Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Running Sync on Automatic Basis (eg cron?)
https://www.tinywebgallery.com/forum/viewtopic.php?f=15&t=3125
Page 1 of 1

Author:  sandman [ 13. Oct 2011, 07:18 ]
Post subject:  Running Sync on Automatic Basis (eg cron?)

Howdy,

Just wondering as I use FTP infrequently to upload my files, is it possible to have the sync media library script run on a scheduled basis or is there a way to create a cron job for it?

Cheers
Sandy

Author:  TinyWebGallery [ 13. Oct 2011, 12:52 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

No. You would have to integrate the functionality to e.g. the internal cron of wordpress.

Best,
Michael

Author:  sandman [ 14. Oct 2011, 00:40 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

Howdy TWG,

In that case I have a phpscript/widget on the front page that only admins can see which they can click and it will rename uploaded files to a certain format, is it possible to inject into that code a call to initiate the plugin's sync process in a similar way that clicking the sync button would initiate the process?

Cheers
Sandy

Author:  TinyWebGallery [ 14. Oct 2011, 09:43 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

I think the effort to do this is the same as using the wordpress cron :).
I looked in the api and the cron seems not hard to use.

The functions simply have to be copied and the output stuff has to be removed because it is not needed.

Best,
Michael

Author:  TinyWebGallery [ 17. Oct 2011, 23:26 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

Hi,

I just played around with the wordpress cron and I'll add the automatic sync to the next version.

- Michael

Author:  sandman [ 18. Oct 2011, 17:36 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

ah cheers!!

Thankyou very much for that!

Author:  TinyWebGallery [ 19. Oct 2011, 11:25 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

Do you want to test this version?

I currently work on the issue that files should not by synced by the cron when a file is uploaded at the same time.
So that half uploaded images get synconized...

- Michael

Author:  TinyWebGallery [ 30. Oct 2011, 17:44 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

Get WFU 2.15.

It's now implemented.

- Michael

Author:  sandman [ 31. Oct 2011, 00:41 ]
Post subject:  Re: Running Sync on Automatic Basis (eg cron?)

Wow, thankyou so much!!
Ive never seen support for a feature request this good or this fast!

Many many thanx!!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/