Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    31
    Plugin Contributions
    0

    Default CRON job to delete cache files

    My host says I have to many inodes. It looks like the culprit is my cache file. Does anyone know how a CRON job to delete the query_selects----------.txt files should be written. I have other modules that put there files in a sub-folder of the cache folder, so I only want to delete the .txt files in the main folder, but I cant seem to get it working.

    TIA

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: CRON job to delete cache files

    The first thing you need to do is turn off the query logging that's generating all those files! That's a debug feature that should never be enabled on a live shop!
    http://www.zen-cart.com/forum/showth...876#post617876


    Second, you can use the utility/code I posted in one of the "similar threads" discussions from the list at the bottom of this page.
    I've included it here for convenience: http://www.zen-cart.com/forum/showthread.php?t=107669 You may want to adapt it to also include *.txt files as well as the *.log and *.sql files it currently cleans up.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: CRON job to delete cache files

    Thanks a million Doc. That did the trick perfectly!

 

 

Similar Threads

  1. v151 Cron Job
    By Cenkki in forum General Questions
    Replies: 19
    Last Post: 8 Sep 2014, 02:54 PM
  2. v139b Need to delete some files in cache directory
    By irishshopper in forum General Questions
    Replies: 1
    Last Post: 13 Feb 2013, 01:51 PM
  3. can i delete the files in Cache directory?
    By pzgoozi in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2010, 10:33 AM
  4. Is it safe to delete files in the cache folder?
    By spbennett in forum General Questions
    Replies: 8
    Last Post: 26 Sep 2008, 08:56 PM
  5. Replies: 1
    Last Post: 26 Jun 2007, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR