Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Need to delete some files in cache directory

    www.irishshopper.com

    Our hosting company has told us we are over double the limit of files on our account and we urgently need to delete some.

    They say most of the files are in the cache directory.

    What does this directory hold and how safe is it to delete files there ?

    Where else can we delete files to give room ?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Need to delete some files in cache directory

    In v1.3.9, the /cache/ folder stores the following:

    a) Default files (these are the only "required" files in this folder):
    .htaccess
    index.php

    b) PHP error log files named "myDebug-xxxxxxxxx.log"
    These files are generated whenever a PHP error occurs on your site.
    Anytime you find these files present, it means you have problems in your site that need fixing. The details are contained in the files themselves.
    Delete the files once you've recorded the error message and have put a plan in place to fix the errors.

    c) zc_XXXXXXXXX.sql files
    These are temporary files storing cached data. The system normally clears them out automatically after an hour, but it's safe for you to delete them anytime.

    d) sess_xxxxxxxxxx files
    These are session storage files, and expire after 24 minutes, and the system normally clears them out after expiry.
    They can be deleted if they're more than 24 minutes old.

    e) *.log files for various payment modules
    These are debug logs used for troubleshooting payment module problems, and can be deleted if you're not trying to fix a specific problem. Turn those logs off inside your payment module settings in your admin.

    f) some addons like ceon uri mapping might have additional folders under the cache directory, and these are used to store cached page mapping rules you've configured. Best to leave them alone unless you're intending to reset all your URLs you've configured with that module.


    g) A different folder:
    /includes/modules/payment/paypal/logs/ --- all the *.log files in this folder are temporary for troubleshooting purposes, and can be deleted. Turn the logs off inside your paypal payment module settings


    NOTE: In v1.5.0 and newer, the *.log files from b) and e) and g) above are found in the /logs/ folder instead. The other files are still found in the cache folder.
    AND, even in 1.3.9, these are most likely the files that are taking up the most excess space on your site. Remove them and deal with whatever problems caused them to be put there in the first place!!!!!!!!



    h) Another folder:
    bmz_cache -- this folder stores cached images for Image Handler plugin use. If you're not using that plugin, you can delete this folder if it's present.
    .

    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.

 

 

Similar Threads

  1. can i delete the files in Cache directory?
    By pzgoozi in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2010, 10:33 AM
  2. CRON job to delete cache files
    By Zeroca in forum General Questions
    Replies: 2
    Last Post: 19 Nov 2008, 05:56 AM
  3. 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
  4. Replies: 4
    Last Post: 13 Sep 2008, 04:40 AM
  5. Replies: 1
    Last Post: 26 Jun 2007, 05:06 PM

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