ShopSite Knowledgebase



In my data directory, why do I have a LOT of files in my ip and moreip subdirectories, some of them MANY days old? (.lastcleaned)

Product: SC
Version: ALL
Platform: ALL

I was looking through my ShopSite files. In the ip and moreip subdirectories of my data directory, I notice many files with old date stamps. Should there be so many old files in there?
Solution ID: S04625

The individual shopping cart files of incomplete orders are kept in the ip and moreip directories in case the shopper returns to complete the order. After a time, certain ShopSite CGI's, when run, are supposed to check the ".lastcleaned" file to identify the last time the files were purged. (The dot before the name means it will be invisible to a normal directory listing on UNIX systems.) If the information in the .lastcleaned file indicates that purging was longer than 14 days ago, the CGIs then delete all files that are more than a few days old.
Problems will occur when the server clock time was inadvertently set ahead. They may also occur if the system crashed and, when it was rebooted, the server clock time was in the future (a bad CMOS battery could be the culprit). During the time the clock is set in the future, the .lastcleaned file could be created with a date stamp in the future. When the system time is corrected, the CGIs checking the .lastcleaned file will never clean up because the file will not appear to be 14 days old.

To resolve, delete the .lastcleaned file. There may also have been shopping cart files that were created during the time the clock was wrong. These files may need to be removed by hand as well. An easier way to do this would be to use the UNIX 'touch' command to bring all files to the current date. Then the ShopSite CGI's will clean them after the normal length of time has passed.

For details about finding files in your ShopSite directory, see solution S04593.


Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
13th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue