Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    53
    Plugin Contributions
    0

    Default Change SQL Cache Method

    I currently am using zencart version 1.37 and am not caching my SQL file.

    I would like to change the SQL cache to cache to file.

    What files do I need to edit and what edits do I need to do to the files inorder to cache to file?

    Thanks,

    Adam Fontana

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

    Default Re: Change SQL Cache Method

    There are 3 caching options:

    1. None

    2. Cache to File
    In your /includes/configure.php and /admin/includes/configure.php files, you'll see this section, which explains the requirements:
    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', 'file');
    define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
    3. Cache to Database
    Caching to database can be enabled simply by setting SQL_CACHE_METHOD to 'database' ... in both configure.php files as mentioned in #2 above.
    .

    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
    Jun 2006
    Location
    U.K.
    Posts
    103
    Plugin Contributions
    0

    Default Re: Change SQL Cache Method

    What are the advantages and disadvantages of files Vs database?

  4. #4
    Join Date
    Jun 2006
    Location
    U.K.
    Posts
    103
    Plugin Contributions
    0

    Default Re: Change SQL Cache Method

    Well, I started with 'file' and that made a major improvement!

    With the browser cache cleared, the homepage parse time reduced from 19 seconds to around 3. Actually, I'm surprised this isn't the default setting?

    Gonna stick with 'file' unless there's a reason not to.

    Next stop... Gzip.

 

 

Similar Threads

  1. v154 SQL Cache Method
    By jolliejollie in forum Installing on a Windows Server
    Replies: 1
    Last Post: 27 Mar 2015, 08:57 AM
  2. v151 How to change site SQL cache method?
    By Feznizzle in forum General Questions
    Replies: 4
    Last Post: 10 Oct 2012, 05:51 PM
  3. sql cache method
    By buildingblocks in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 29 Jun 2010, 02:32 AM
  4. sql cache method
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Mar 2008, 06:30 AM
  5. SQL Cache Method
    By kimhuff in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 21 Oct 2006, 11:52 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