|
Posted by Rik on 10/18/06 00:26
Daz wrote:
> Moot wrote:
>> Do you have access to CRON? If so, you could parse the xml upon
>> retrieval and store the paths to the images to be redimensioned in a
>> table queue. You could then have a cron script run once a minute or
>> (as often as necessary) to try and clear out the queue.
>
> Another alternative to CRON, would be to create a script that checks
> if anything needs to be done every time a page is clicked upon. It
> can be as simple as adding a function call or include() to the pages
> you want to act as the trigger. It's more of an advantage when you
> get heavier traffic on a website, but it's a possibility. I think the
> best place to add a trigger, would be to the footer (if you use one)
> which would be appended to every page, and trigger last thing, so it
> wouldn't interfere with the page generation for the user.
Yup, perhaps flush(), and maybe on more traffic (allthough, on more traffic
an other hoster might be more helpfull), create a possibility it's fired:
if(rand(0,99) == 1){
//run script
}
--
Rik Wasmus
Navigation:
[Reply to this message]
|