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

How would you update the ACP template cache

Discussion in 'XenForo Questions and Support' started by KillaBite, Sep 13, 2011.

  1. KillaBite

    KillaBite New Member

    I edited one of the templates in the ACP in the database. Is there anyway to force the cache purge for admin templates like there is for regular ones? When I go to the page it's still has the old option.

    Thanks!
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can import the master style again by visiting /install/ and clicking Rebuild Master Data. That will restore all original admin templates and ensure the cache is updated.

    edit - note that the admin templates don't have a revert option like the regular templates do. You are editing the master when you edit an admin template. Importing the master data overwrites those changes to the admin templates.
     
    otto likes this.
  3. Cezz

    Cezz Well-Known Member

    Not sure but think they just wants the cache to be rebuild not the actual templates to be reverted... Because they have edited the admin template in the database instead of using the template editor...

    @KillaBite you would be better to simply edit the ACP templates via the ACP itself instead of messing with the DB! (You need debug mode of for that)
     
  4. KillaBite

    KillaBite New Member

    @Cezz yeah exactly I don't want the templates reverted. In regards to your question, I can't see the admin templates in the ACP unless I'm not looking in the right area. I went to DB as it's the only place I could find to edit the ACP templates.
     
  5. James

    James Well-Known Member

    Enable debug mode (put $config['debug'] = true; in config.php)
    Navigate to admin.php?admin-templates/
     
    Michael Dance likes this.
  6. KillaBite

    KillaBite New Member

    Awesome I will do so. Thanks for the help
     
  7. otto

    otto Well-Known Member

    @Jake Bunce
    Thanks for your hint - i have made a bad thing, i install one add-on and at same time i deistall another one. Bad Idea! This brokes my Admin templates. But with the hint above i can rebuild it and all will just be fine. :) Thanks.

    Xenforo should better block this, so any body can only do one thing at same time. ;)
     

Share This Page