Closed: (MODPYTHON-7) Autoreload works if mtime is newer,
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Closed: (MODPYTHON-7) Autoreload works if mtime is newer,




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Closed: (MODPYTHON-7) Autoreload works if mtime is newer,  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-06 07:45 AM

[ http://issues.apache.org/jira/brows...THON-7?page=all ]

Graham Dumpleton closed MODPYTHON-7:
------------------------------------


> Autoreload works if mtime is newer, but not older.
> --------------------------------------------------
>
>          Key: MODPYTHON-7
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-7
>      Project: mod_python
>         Type: Improvement
>     Versions: 3.1.3
>     Reporter: Graham Dumpleton
>     Assignee: Nicolas Lehuen
>     Priority: Minor
>      Fix For: 3.2.7

>
> The apache.import_module() method only reloads a Python module if the modification
 time of the file on disk is newer. This means that if one restores an old version o
f a file from backup, eg., by using "mv" command from another location, it will not 
rel
oad it and it is necessary to touch the file or restart Apache.
> The check in apache.py, instead of being just:
>   if mtime > oldmtime:
> could perhaps be:
>   if mtime != oldmtime:
> I don't believe this would cause any wider issues, but might be due some t
hought first.
> The various settings of mtime and oldmtime above that in the code, ie., to 0 or 1,
 will also have to be reviewed to ensure this change doesn't break anything.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:59 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register