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

XF 1.2 Assorted Small Things

Discussion in 'Have You Seen...?' started by Mike, Apr 19, 2013.

  1. Mike

    Mike XenForo Developer Staff Member

    Let's take a break from some of the bigger feature improvements coming in 1.2 and look at some of the smaller tweaks. This isn't necessarily an exhaustive list. I can't really remember everything. ;)

    User thread title editing
    A new permission has been added to control whether users can edit the titles of their own threads. This is automatically tied into the post editing length permission.

    This also includes editing the prefix as well.

    Style property cache size reduced
    If you have a number of styles installed, you may have had to fight with MySQL max_allowed_packet due to the style property cache size. The cache will now only store changes from the default value, reducing the size of the cache per style.

    Template compilation speed improvements
    Don't expect this to be a huge change, but template compilation output will be reusable by child styles whenever possible.

    With this change, you'll probably see the template compilation process slow down more by the number of languages than the number of styles you have. Remove any languages that aren't being actively used.

    Code event speed improvements
    This suggestion comes courtesy of digitalpoint. Many code events now offer a "key". When creating a listener, you can optionally specify the key to listen to. If you specify a key, your listener will only be called when the key matches.

    For example, when firing load_class_model, the key is the class name to be loaded. If you're only extending one model, you can enter the class name and we will only call your listener code when the model is being loaded.

    This can significantly reduce the number of listener calls per page, leading to add-on execution speed improvements.

    Parsed BB code cache
    The parse tree of messages is now cached for a configurable length of time. Note that this is the parse tree, not the compiled output. The final compiled output is still handled at run time. This gives significant performance improvements, but does not limit the dynamic nature of BB code output (by style, language, or user viewing).

    This cache can easily be used by any content types.

    Trophy and promotion cron speed improvements
    Trophy and promotions are now automatically applied on session creation. While the cron still runs, it only runs for users that have been active very recently.

    This significantly reduces the overhead of wasted trophy and promotion cron runs while simultaneously ensuring that users receive their trophies and promotions more efficiently (if they haven't been active for a while or if a new trophy/promotion is added).

    New general-purpose system for long running processes
    1.2 adds a new "deferred" system for running any code that can be broken up into pieces and may take a long time (multiple seconds or more) to run. Deferred tasks can be triggered automatically by the code as necessary and they will either be run automatically in the background (by page views) or by displaying the current running state to the administrator (in the case of some cache rebuilds). This effectively unifies the cache rebuild systems with cron and other potentially long running processes (such as the bulk user change system discussed in the past).

    Mail queue system
    Using the "deferred" system above, a mail queue system has been implemented for email that does not have to be sent immediately, such as thread watch emails. Other emails (such as registration confirmation or lost password) emails can still bypass the system.

    This creates performance improvements, particularly for heavily watched threads or when using a slow, external mail server.

    RSS content snippets
    RSS feeds for forums now contain content snippets (if permissions allow). The snippet length is configurable.

    Hidden staff
    When creating a moderator, you can choose to make them a hidden staff member. This will prevent them from being seen or treated as staff by other users. For example, they will not show up in the online staff list.

    Conversely, users who are not moderators can be made staff and will appear as such in the user interface (such as in the online staff list).

    User search improvements
    The search criteria for users in the admin CP is significantly expanded. You can now search by:
    • Gender
    • Has no secondary groups
    • NOT in a secondary group
    • Registration between 2 dates
    • Last visit between 2 dates
    • Message count between 2 values
    • Trophy points between 2 values
    • By all custom fields
    There are still various features, small and large, to talk about for 1.2, but we'll save them for later. :)
    caoanh204, KC2T, dbembibre and 127 others like this.
  2. Crayo

    Crayo Active Member

    More fantastic features. Good job.

    Oh yay, I'm first.
  3. Lisa

    Lisa Well-Known Member

    Woohoo, more goodies.

    Now you're just teasing us, aren't you :p
  4. Alien

    Alien Well-Known Member

    This release is going to be wonderful! So much helpful stuff!

    Can't wait!
    TheComputerGuy likes this.
  5. sonnb

    sonnb Well-Known Member

    Love these changes :)
  6. robdog

    robdog Well-Known Member

    Mail Queue System = Awesome
  7. Eric J.

    Eric J. Well-Known Member

    Great features, can't wait.
  8. Mike

    Mike XenForo Developer Staff Member

    Yes, but I'm still wearing a shirt... :p
  9. Lisa

    Lisa Well-Known Member

    Damn you LOL :D
  10. Brogan

    Brogan XenForo Moderator Staff Member

    I've been keeping a list if it helps :D
  11. Alien

    Alien Well-Known Member

    Possible typo?

    "For example, they will now show up in the online staff list." should be

    "For example, they will not show up in the online staff list."

    ? :)
  12. RoldanLT

    RoldanLT Well-Known Member

    Mike, I think... you're not sleeping 24/7 :)
  13. Lisa

    Lisa Well-Known Member

    And you... just another tease!
  14. Mike

    Mike XenForo Developer Staff Member

    Yeah, I just saw and fixed that as well.
    Nasr and Alien like this.
  15. Nasr

    Nasr Well-Known Member

    Great job, Mike.
  16. cclaerhout

    cclaerhout Well-Known Member

    That is very good. Thanks !
    The key for listeners seems really interesting. So if a key is used, we don't need anymore to use a if/switch structure inside the listener isn't it?
    About the "User thread title editing", where is the option to edit the title (a double click on the title would be enough ? ;) )
    And I'm curious to see what kind of cache you are using for the parser.
    Any way thanks again.
  17. 14DH01

    14DH01 Active Member

    announced changes are huge! thank you! (y)x 1000
  18. 0xym0r0n

    0xym0r0n Well-Known Member

    I just did a back flip on the search options :)
    I was going to pay someone to do this, now I don't have to!
  19. Luxus

    Luxus Well-Known Member

    The small things are the things you appreciate the most :)
  20. gordy

    gordy Well-Known Member

    Kick ass, that will eliminate several mods (y)

Share This Page