Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default sql cache method

    I am trying to use the best method for my site. In the description below, how many products/categories would justify medium and how many large?


    None. SQL queries are not cached at all. If you have very few products/categories you might actually find this gives the best speed for your site.

    Database. SQL queries are cached to a database table. Sounds strange but this might provide a speed increase for sites with medium numbers of products/categories.

    File. SQL Queries are cached to your server's hard disk. For this to work you must ensure that the directory where queries are cached to is writeable by the web server. This method is probably most suitable for sites with a large number of products/categories.

    I will have approx 30 cats and 375 - 400 products

    thanks.
    Last edited by gsdcypher; 6 Mar 2008 at 11:41 PM.

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

    Default Re: sql cache method

    1. Where did you get those descriptions from?

    2. What hosting company are you with?

    3. If your mysql server is tuned poorly and runs on the slow side, don't use database-based caching.

    4. If your webserver itself is on the slow side, use No caching, because the file-based caching will just create unnecessary extra load.


    In short ... trial and error is the best approach ... there's no way I can tell you whether one is better than the other without knowing exactly how your webserver and database server are configured, tuned, and operating.

    When in doubt, choose None.
    .

    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
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: sql cache method

    Thanks DrByte.

    Those descriptions are from the Zen Cart installation process. I was just trying figure out what constitutes med and large.

    I am upgrading from 1.3.7 to 1.3.8a and moving over to the zen recommended blue host. So if you have any tips for blue host configuration I would appreciate it.

    I chose file during the installation process... How would I change that to database?

    Thanks.

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

    Default Re: sql cache method

    Quote Originally Posted by gsdcypher View Post
    I chose file during the installation process... How would I change that to database?
    You can edit your configure.php files and change the SQL_CACHE_METHOD setting there. Be sure to do both.

    I'm inclined to suggest "none" or "database" over "file", simply due to garbage-collection algorithms.
    .

    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. 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. Change SQL Cache Method
    By fontuna in forum Basic Configuration
    Replies: 3
    Last Post: 11 Jul 2007, 01:01 PM
  5. SQL Cache Method
    By kimhuff in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 21 Oct 2006, 11:52 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