Skip to content
Snippets Groups Projects
  1. Jul 06, 2023
  2. Jul 05, 2023
  3. Jul 04, 2023
    • Oliver Hader's avatar
      [TASK] Add shared cache for VariableProcessor · 831c3df7
      Oliver Hader authored
      VariableProcessor::addHash() is called to convert URI path
      variables that don't comply with certain rules to a hash,
      which does.
      
      First of all, variables must not exceed a certain length
      of 32, second of all, variables must only contain word
      characters aka "\w" or "[A-Za-z0-9_]".
      
      So whenever a variable is too long or contains invalid
      characters, it is converted to an md5 hash which complies
      with both rules.
      
      It has been reported that the checks, whether to generate a
      hash and the hashing would have a very noticable performance
      impact.
      
      This change introduces as specific runtime cache for
      VariableProcessor that is shared with any other new instance.
      This way, the necessity whether a hash is required and the hash
      representation of a value can be resolved from this cache.
      
      For instance, this would speed up scenarios that are enerating
      large product lists and generate, when every invocation with a
      new UID would have triggered a new hash check and assignment.
      
      Resolves: #100974
      Releases: main, 12.4
      Change-Id: I19e1d138a79792cc05a6a908f1ee5f87236a65bd
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79710
      
      
      Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      831c3df7
    • Christian Eßl's avatar
      [TASK] Improve the save notification in mass editing mode · 22ede859
      Christian Eßl authored
      The new save notification currently lists all changes separately,
      when editing records in EditDocumentController.
      This leads to a huge notification box, when saving many records
      at once.
      
      The behaviour is now changed so that if more than 10 records
      were edited, a more generic message is shown instead:
      
      "x records have been successfully saved."
      
      Resolves: #100223
      Releases: main, 12.4
      Change-Id: Ic3db6a1937de8eb288a7ded0bce3e1a88f10cb1e
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79686
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarAnnett Jähnichen <mcmietz@web.de>
      Reviewed-by: default avatarAnnett Jähnichen <mcmietz@web.de>
      22ede859