Raised This Month: $ Target: $400
 0% 

nvault prune


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 04-19-2011 , 20:30   nvault prune
Reply With Quote #1

I'm new in using nvault, and I have some questions about timestamp. For ex. yesterday I created 4 values, today 3 values and tomorrow I will create another 6 values.

PHP Code:
public plugin_cfg()
{        
    
set_task(10.0"prune")
}

public 
prune()
{    
    
nvault_prune(g_Vaultget_systime() - (10 86400) )
    
    return 
PLUGIN_HANDLED

So, this function will delete all values in 10 days or one by one when the value was created?
killergirl is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2011 , 20:39   Re: nvault prune
Reply With Quote #2

It deletes all entries that have timestamps in that range (0 to (get_systime() - (10 * 86400))).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode