An Adobe Commerce developer is developing a class that is executed in both the frontend and crontab areas. When executed in the frontend \Magnto\Customer\Model\session::getCu5tonteria() is called but when executed in the crontab this section of code is skipped.
Keeping performance and best practices in mind, what would be the best approach to achieve this?
Currently there are no comments in this discussion, be the first to comment!