Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Disk Usage limit: What is the cache forlder for?

    I have check my disk usage in cpanel and it tells me that I'm at 95%

    My hosting provider says that my cache folder appears to be the culprit.

    How is the cache folder ...\zen-cart\cache managed?
    What is this folder for?
    Is it necessary?
    Can I clear its contents without ill effects?

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

    Default Re: Disk Usage limit: What is the cache forlder for?

    You can clear it out, except for 2 files: .htaccess and index.php
    Leave those 2 files, since they are safeties to protect against snoopers who might try to poke around in the files in that folder.

    The cache folder is mainly used to store database cache queries and also to store customer session data, depending on how your site is configured. Periodic cleanup is a good idea.
    .

    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
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Disk Usage limit: What is the cache forlder for?

    Thanks Dr. Byte

    Is the best way to clear this up via a file manager type program and just delete, or is there a tool on the Admin menu?

    "depending on how your site is configured"
    How do I understand the setting and how do I configure them?

    thanks


    Nahid Fashions

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

    Default Re: Disk Usage limit: What is the cache forlder for?

    Quote Originally Posted by shocker View Post
    Is the best way to clear this up via a file manager type program and just delete, or is there a tool on the Admin menu?
    File Manager or FTP program ... and choose "delete".
    There is no admin-provided tool for doing this.

    Quote Originally Posted by shocker View Post
    "depending on how your site is configured"
    How do I understand the setting and how do I configure them?
    You're probably doing file-based caching ... and probably doing it "for a reason". Thus, I don't recommend making any changes.
    The settings for whether to use file or database-based caching and what folder to do it in are contained in your configure.php files.
    I recommend not changing those settings without specific reason.
    .

    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.

  5. #5
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Disk Usage limit: What is the cache forlder for?

    I'd like to pretend I'm smart enough to know the "reason" to your file-based caching, but I'm not.
    But I take it that this something I don't have to worry about. Just clear the files from time-to-time.

    thanks again

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

    Default Re: Disk Usage limit: What is the cache forlder for?

    What is history of your Zen Cart site?
    ie: what version did you *first* install?
    Who installed it?
    Who performed upgrades on it?
    What is your Version History on the Admin->Tools->Server Info page?
    .

    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.

  7. #7
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Disk Usage limit: What is the cache forlder for?

    Zen Cart 1.3.7
    Database Patch Level: 1.3.7
    v1.3.7 [2007-06-24 12:39:52] (Fresh Installation)

    I installed this and have performed some upgrades (user mods).

    That's it, quite basic

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

    Default Re: Disk Usage limit: What is the cache forlder for?

    Okay, by default, the cache setting is set to "database".
    I'm not sure why you selected "file" instead when you did the installation.
    It's usually best to use "database"-based caching etc

    In your configure.php file, you have two entries affecting this.
    MAKE A BACKUP OF YOUR 2 CONFIGURE.PHP FILES BEFORE CHANGING ANYTHING.

    Since you're the site owner, and you did the install, and thus it was *you* who changed the setting in the first place, you could try changing them as shown below in order to switch to database-based storage:
    Code:
      define('STORE_SESSIONS', 'db');
      define('SQL_CACHE_METHOD', 'database');
    Beware that if your database is on an overloaded shared-hosting server, this might slow down your site somewhat. If this happens, put the settings back to what you had earlier.

    Be sure to change BOTH configure.php files if you're going to do these changes.
    .

    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.

  9. #9
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: Disk Usage limit: What is the cache forlder for?

    both configure.php files:

    includes\configure.php
    admin\includes\configure.php


    already had the following settings

    Code:
      define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
      define('SQL_CACHE_METHOD', 'database');
    Last edited by shocker; 26 Dec 2007 at 01:03 PM. Reason: incomplete

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

    Default Re: Disk Usage limit: What is the cache forlder for?

    hmmm

    what kind of filenames were you seeing in your cache folder then?
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. What is the difference between the Cache folder and the Logs Folder?
    By ray-the-otter in forum General Questions
    Replies: 7
    Last Post: 22 Feb 2013, 12:26 PM
  2. Replies: 2
    Last Post: 30 Mar 2012, 08:29 AM
  3. Fix Cache Key ( what the... )
    By Soulkreed in forum General Questions
    Replies: 12
    Last Post: 2 Dec 2009, 01:21 AM

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