FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to stop recording in the table forumsfud_ses ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to stop recording in the table forumsfud_ses ? [message #27198 is a reply to message #27183] Mon, 29 August 2005 21:37 Go to previous messageGo to previous message
matthieu_phpmv is currently offline  matthieu_phpmv   France
Messages: 44
Registered: November 2004
Karma:
Member
Ok i understand, but don't you think its strange that nobody loggued in so long that 40Mb can be logged in the DB ?

Anyway wouldn't it be interesting to add a cron task to do this ?

I'm thinking of such a feature for phpmyvisites.

I'm not still sure of how I will do this, but i have this idea (my task is once a day).

- Add a @ignore_user_abort( true ); at the top of the file.
- at the bottom of each page view, visitor looks the last modification time of a file "last.dat"
- if day is not today, launch cron task
- when task is lauching, edit the file and add information about the task, and update with info about what is accomplished, etc. for example
- when task is finished, touch the file with today time
- if day is today, skip


what do you think of this idea ?

it will be used for archiving huge datas, sending mails, update rss, etc.
The advantage is that the big process could be computed in several times if server limits time execution.

Mat
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Funktions for the regstriation of an User-Session
Next Topic: Calendar Discussion
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 04:11:02 GMT 2024

Total time taken to generate the page: 0.04208 seconds