Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default guideline on creating a system clone?

    For once in my life, I'm trying to think ahead a little.

    Is there a guideline/FAQ or anything that covers how to make a cart/DB clone for testing purposes? I want to be prepared when the next release of ZC comes out.

    Thanks.

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

    Default Re: guideline on creating a system clone?

    .

    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
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: guideline on creating a system clone?

    OK, so it seems to simply be a procedure of:

    1. copying the files
    2. doing a backup/restore of the DB
    3. updating the configure files.

    Seems straightfoward enough.

    On the subject of the cache, is the ZC cache a *true* cache? That is, can it be deleted or damaged, and ZC will automatically regenerate it?

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

    Default Re: guideline on creating a system clone?

    I'm not sure what you're suggesting a "false" cache would be.

    The /cache/ folder only stores information as it needs it. You can purge stuff from it anytime you like.
    .

    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
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: guideline on creating a system clone?

    I'd envision that a 'false' cache would be one where cache files are only created when the 'master' file is changed.

    Files deleted from cache would not be recreated unless the master file was edited again.

    I'd guess that was what the OP wanted to be sure was not the case here.

    There's some confusion as to what 'creates' the cache file - the action of creating or editing a page on the site, or the action of a user requesting to view a page.

    I'll guess that it is the latter explanation in this case.

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

    Default Re: guideline on creating a system clone?

    In Zen Cart 1.x, the /cache/ folder is for SQL caching, not page caching. And, by default, SQL caching is not done to files anyway.
    The /cache/ folder is also used for holding things like debug logs, just because it's writable.
    It's also used for holding session files if you've configured your store to not store session data in the database for some odd reason.
    The only things you need to keep in that folder are the .htaccess and index.html, and that's just to prevent snooping.
    .

    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
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: guideline on creating a system clone?

    That's all good information. I just didn't understand the purpose of the cache, and wanted to be sure it never contained any vital files that would bring down ZC if deleted.

    Thanks.

 

 

Similar Threads

  1. Is there any guideline for SQL_CACHE_METHOD?
    By justin2010 in forum General Questions
    Replies: 5
    Last Post: 12 Dec 2010, 02:51 AM
  2. Order Total code guideline help please
    By hem in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 27 May 2010, 01:18 PM
  3. Creating a development system
    By melkor in forum General Questions
    Replies: 4
    Last Post: 4 Mar 2008, 05:09 PM
  4. Creating a simple offline ordering system
    By iamalive in forum Basic Configuration
    Replies: 0
    Last Post: 19 Feb 2008, 03:37 PM
  5. To clone or not to clone?
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Dec 2006, 01:09 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