Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Cache folder function?

    Hi,

    What is the cache folder function in Zen template work?
    Can I use it to create caching Php without obstructing the good performance of the site.

    Regards
    Olivier

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

    Default Re: Cache folder function?

    The cache folder is used to cache sql queries and store session data as well as debug logs. Some addons use it for caching images and other things as well.
    PHP caching is not recommended, but feel free to experiment. I generally find that if your PHP needs caching then your server is probably a bit underpowered. Caching the PHP into *more* files on the filesystem still makes everything dependent on the filesystem. Caching PHP typically results in about a 1-3% performance gain. Optimizing images usually results in about a 50% performance gain. Hosting on a properly-optimized and adequately-powered server can often result in a 2000% performance gain.
    .
    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
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Re: Cache folder function?

    Hi,
    I understood the message…
    It is for personal knowledge. My site is well, I hope.

    In this moment, I have some problem with some drivers. I benefit to see what is made in system resources saving.
    Is in this thought that I will like to carry out this test.

    Thank you for reply…

    Rgerads
    Last edited by OLIVIER72; 30 Jun 2010 at 10:47 PM.

  4. #4
    Join Date
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Re: Cache folder function?

    Hi,
    I read on /includes/configure.php and in admin conf.php too

    Code:
      // 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', 'none');
      define('DIR_FS_SQL_CACHE', '/var/www/evprovence/cache');
    What is the difference between "file" and "database" method?
    What this define do in the Zen template?

    Regards

  5. #5
    Join Date
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Re: Cache folder function?

    I forgot...
    how long validity time have recorded files into /cache

    Regrads

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

    Default Re: Cache folder function?

    Quote Originally Posted by OLIVIER72 View Post
    What is the difference between "file" and "database" method?
    'file' stores cache content in files in your Zen Cart /cache/ folder.
    'database' stores cache content in a database table.
    Quote Originally Posted by OLIVIER72 View Post
    What this define do in the Zen template?
    Cache has nothing to do with the template.
    Quote Originally Posted by OLIVIER72 View Post
    how long validity time have recorded files into /cache
    SQL cache content is typically 5 minutes, depending on what's being cached.
    Any log files in that folder have no expiry. They're for your reference, and can be deleted whenever you wish.
    .
    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
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Re: Cache folder function?

    Thank,
    Ok,

    I have a problem but I don't understand where that come.
    It is difficult to explain with my english. Moreover, there is nothing to say, except that server becoming excessively slowly.

    Two weeks ago, I tranfer all sites on dedicated server with Deb64.
    The sites run correctly during 30 minutes after a reboot.
    After this time, … 10 minutes to load an obj flash (1ko).
    The Hosting team thought access problem of SAN.
    Since yesterday, the server is working with Deb32, and same problem.
    There are only 4 sites on the server. The sites are small and nothing complicated to manage.

    Have you an idea where I take a look to manage several Zen template?


    Regards

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

    Default Re: Cache folder function?

    If it's taking more than 10 minutes to load a 1 kb flash object, then you've got a SERVER problem. Not a Zen Cart problem.

    Zen Cart has nothing to do with flash. And even if you add HTML to have Zen Cart display code to launch a flash object, it still has *nothing* to do with Zen Cart as far as how that file is loaded. Thus your problem is a SERVER issue, which your hosting company will have to resolve.

    And it's definitely not related to "cache" in any way.
    .
    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
    Mar 2009
    Location
    France
    Posts
    58
    Plugin Contributions
    0

    Default Re: Cache folder function?

    Hi,
    I preferred to be sure that there haven't setup to do on Zen conf, as server side.
    Ps aux and top provide no special indication, change drivers... idem
    I still don't know why my server get lower performance after few hours. The system is overload and I can't define who is doing what.
    To solve the problem, I will return to shared server.
    ... The circumstances are not with me, is like that. Damage

    Thank you for your presence.
    Cordialement
    olivier

 

 

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. function.session-save-path Error Cache Folder was 170mb!!
    By wdd49 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 22 Aug 2011, 11:59 PM
  3. cache folder
    By Maynards in forum General Questions
    Replies: 11
    Last Post: 12 Jul 2011, 11:34 PM
  4. 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