Command scheduling

Hello. I want to run find and delete cached files in my user’s home directory on a schedule like this:

find $HOME/.cache/thumbnails -ignore_readdir_race -type f -atime +7 -delete

My sources recommend that the files are only deleted when applications are neither reading nor writing to them, so I figured out the command should run upon Login or Logout. If that’s the case then how should I schedule this command?

Login or logout? How? Please!

How do I run find on login?

System Settings > Startup & Shutdown > Autostart > Add… > Login script/logout script