Announcement

Collapse
No announcement yet.

Using the Block Invariant Setting to Reduce Page Creation and Snapshot Times

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using the Block Invariant Setting to Reduce Page Creation and Snapshot Times

    New to SellerDeck 2013 v12.0.5 is the Block Invariant setting.

    You may be able to save some page creation time and snapshot generation time in v12.0.5 using this new Block Invariant setting.

    SellerDeck have added an 'Invariant' setting that can be set to either True or False on Blocks.
    This can be really useful if you have the same code that needs to be generated for every page, such as the MegaMenu, New Products or Best Sellers for example.

    By setting the Block's Invariant setting to True the code between the Block start and end is only executed once during the page creation phase that occurs prior to uploading and creating snapshots (So a List for example is limited to the first pass only). This can potentially save a lot of time and obviously speed up the process prior to uploading as well as making snapshots.

    Beware however that if you have any other compounded conditional Block code within the Block, such as code that may vary per page then you may need to create a number of Block instances with the Invariant set to True to benefit.

    Any conditional statements within the Block test are executed as normal and PHP Blocks will also work.

    In Design, right click on a Block statement, select to Edit Appearance and you will see the Invariant at the top, defaulted to False.

    Note - Backup well first before trying it out.

    Attached Files
Working...
X