I have a bunch of templates that I have in folders in my main folder. I know wanted to move all of these into a "templates" folder to make my code base more clean and easy to navigate. I also re-named the template name themselves since they were badly named from the start.
When I moved the template files into the new templates folder all pages that used the templates were of course unlinked as expected. But I now find 2 issues that I cannot figure out:
- In one of the cases I still found the old template name in the dropdown list of templates, and when I linked it with the old name the page shows up as expected. Even if the file itself have the different Template Name. Why?
- In another case the template dissapeared completely from the dropdown list and I therefore can't link it. Why?
Here is the general code for a template file:
* Template Name: My New Template 1
I have read about this on the forums and find an answer from 2017 where they say files are only re-scanned every hour. Is this still the case?
I also tried to reload cache, hard reload from inspect, restart the entire computer but nothing works. Any guidance how I can smoothly change template names and immediately link them to the pages again?
It's been 2 hours, still the same situation. What is going on? I tried to create a completely new template but it is not showing up either.