Re: 1 cset was pushed to modules/stable: bug 3740 - regenerate the static/session...

mikespub <[email protected]>
Newsgroups gmane.comp.cms.xaraya.bk-notices
Organization Xaraya
Message-ID <[email protected]>
Jason Judge wrote:
> ...
> John - if this could be implemented as a function capable of being triggered
> by the schedular, then that would be ideal. I don't know if we have a
> generic mechanism in place yet to handle non-reantrant scheduled jobs (to
> prevent another job starting while the current one is still running - and
> not even sure how we could implement such a thing without OS-portable
> lockfiles), but if we do, it could be included. Either way, backgound jobs
> are definately a no-no. cron/at/schedular is the way to invoke those, or
> inittab/services for daemons.
> 
> -- JJ

Indeed - the exec() option is unlikely to work in most cases, either
because it's already disabled for security reasons, or because you'll
be thrown out by your shared hoster soon after :-)

The prefetch() scheduler API in xarcachemanager could be used to refresh
those sessionless pages if necessary, but the best option would still be
to call wget with the (possibly variable) list of URLs in a cron job.

Having a PHP script available to do it is always handy too of course :-)

Mike.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.