What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

hallo all, I am looking at the performance tuning tips by spryker here :

UM9F81RCP
UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

hallo all,

I am looking at the performance tuning tips by spryker here : https://documentation.spryker.com/docs/performance-guidelines#classresolver-optimizations

This section talks about two Kernel constants that I could not find :

$config[KernelConstants::RESOLVABLE_CLASS_NAMES_CACHE_ENABLED] = true;
$config[KernelConstants::RESOLVED_INSTANCE_CACHE_ENABLED] = true;

Can anyone please help me to find them, or the constants that can be used instead if these are deprecated !

Thanks

Comments

  • Are you using latest Kernel?
    Those have been added recently, see GitHub changelog history. Most likely after 3.46.1

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    achso

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet
    "name": "spryker/kernel",
    "version": "3.42.4",
    

    πŸ˜• few minors behind

  • Kernel is the most stable module in the system. It is advised to always be up to date on that one.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    thank you for the info Mark … have a great day πŸ™‚

  • UPPB2H525
    UPPB2H525 Posts: 51 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited August 2020

    In addition to this topic. I tried to enable this and to build the ClassCache with vendor/bin/console cache:class-resolver:build

    Unfortunally there is a problem with the used PunchoutModule which is integrated as described in https://documentation.spryker.com/docs/punchout-catalog-feature-integration

    The following error occurs:

    vendor/bin/console cache:class-resolver:build
    Store: DE | Environment: development
    Symfony\Component\Finder\Exception\DirectoryNotFoundException - Exception: The "/data/src/PunchoutCatalog/*/" directory does not exist. 
    in /data/vendor/symfony/finder/Finder.php (602)
    
    Command: vendor/bin/console cache:class-resolver:build
    

    If I remove the PunchoutCatalog from

    $config[KernelConstants::PROJECT_NAMESPACES] = [
        'PunchoutCatalog',
    ];
    
    $config[KernelConstants::CORE_NAMESPACES] = [
        'PunchoutCatalog',
    ];
    

    it works as expected.

    Any thoughts on that?