Announcement

Collapse
No announcement yet.

Widget Cache Time Question

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

  • [CMS] Widget Cache Time Question

    I have a couple of PHP Execution widgets on my pages. I currently have these widgets set to cache for 5 minutes but would like to increase it for performance reasons. If I have a query in my php widget, are the results of the query cached for the duration of this setting? So if I have a widget pulling forum threads with a cache life of 5 minutes, if a new thread is added at the same time the cache refreshed, will the new thread not show up until the next refresh?
    sigpic
    Nation of Blue - Kentucky Wildcats Sports


    Some CMS Goodness: Add Avatar to Article

  • #2
    Any of the support or development staff have any thoughts?
    sigpic
    Nation of Blue - Kentucky Wildcats Sports


    Some CMS Goodness: Add Avatar to Article

    Comment


    • #3
      You are correct; the new thread will not show up until the next refresh. Just pulling a few thread titles (that is what I am assuming you are doing from your home page) should not make your forum take a performance hit though; try optimizing the query and code before you raise the cache time.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X