You are hereForums / Bugs / Videocache cleaner deleted time

Finally, the wait is over!!! Videocache 2.0.0 is here :-) Check changelog for changes and new features in this version. Contact Us for your free upgrade!!

Videocache cleaner deleted time


2 replies [Last post]
Offline
Joined: Jan 13 2010
Videocache cleaner deleted time

Hi.
In vccleaner script in line 87 is:
if cur_time - os.stat(video)[stat.ST_MTIME] > expire*86400:

but in line 88 is:
age = int((cur_time - os.stat(video)[stat.ST_ATIME]) / 86400)

Is it correct?
In line 87 shouldn't be stat.ST_ATIME instead of stat.ST_MTIME?

admin's picture
Offline
Joined: Nov 2 2008

Hi stivi,

Thank you for pointing it out. But videocache updates both, the access and modified time, of a video whenever a video is served from cache. So, both are same at any given point of time. Though I'll change it in the next version, the end result will be some.

Thank you!

Offline
Joined: Jan 13 2010

Hi,
Thans for the explanation.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters shown in the image.

My Book on Squid

Purchase/Renew

Go to Pricing page to purchase a new license or renew your existing license.

Recent comments

Who's online

There are currently 0 users and 207 guests online.