How to use the Cache Steps

How to use the Cache Steps

Comments

  • I created a new cache definition in \"System > Administration > Cache\".\r\nThen I stored an object using the \"Put in Cache\" step. The debugger shows that this step is succeeding. \r\nThen, I use a \"Get from Cache\" step to retrieve the values, but it never succeeds. Instead, it goes through the \"No Data Result\" path.\r\n\r\n\r\nI don't understand, everything seems configured correctly. I'm defining the \"Get from Cache\" step with the same exact \"Type\

  • [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Are you positive that your "Get from Cache" step is not actually a "Get from Cache[List]" step?

    There are two types of cache steps: steps for storing and retrieving [b]lists,[/b] and steps for storing and retrieving [b]a single object. [/b]
    You cannot cross these types of steps, i.e. using a "[List] Get from Cache" with a "Put in Cache" step, or visa versa.

    When storing [b]individual objects [/b]you must use the "Put in Cache" and "Get from Cache" steps. These steps store a [b]single object[/b] for a given key.
    When storing [b]lists [/b]you must use the "[List] Add Item" and "[List] Get from Cache" steps. These steps store a[b] list object[/b] for a given key.

    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att1[/img][/font][/color]

Sign In or Register to comment.