1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a way to progmatically rebuild template caches?

Discussion in 'XenForo Development Discussions' started by Jaxel, Dec 24, 2014.

  1. Jaxel

    Jaxel Well-Known Member

    Topic. I have a feeling I can do it with this:
    Code:
    XenForo_Application::defer('Atomic', array('simple' => array('TemplateReparse', 'Template')));
    But I don't want to be wrong.
     
  2. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    yeps, that should do the trick. But you might want to make this a manual deferred process.
     
  3. Jaxel

    Jaxel Well-Known Member

    What does that mean?
     
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Right now, the deferred process occurs when the next defer process is called via AJAX, so if you want to rebuild the templates as soon as possible go with manual process. At least that's what I know.
     

Share This Page