firstly I would like to know you that I am not so familiar with coding at all- got a few lessons in my university (studying design and fashion), so please be nice to me
Well to my issue- I am working on my portfolio webpage made under WP, i currently made a working script (yay, so proud of myself
) but I cant figure how to do, if I want to execute it on certain pages every x minutes.
So what I wish and what is my idea: I would like to write a php script which will run my working script every x minutes when user visits specific pages.
For example if user visits my page something.com/page1 my script will run, if user visits something.com/page2 immediately script will run in next x minutes minus elapsed time from previous execution. Basically I do not want to run script everytime when someone visits something.com/page1 or /page2, but maximally (60/x)times a hour.
Hope I explained it well
Thank you for your help