Template Refresh/Update after changing a file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi guys,

I'm currently developing a custom nopCommerce Template and  I have a little problem where I can't find a solution.

My code editor automatically uploads a changed file via FTP to the theme folder, doesn't matter if it's just the the css or whatever chtml file. But everytime I change a template file I can't see the changes on the live Website.
I reload the page like 100 times but nothing changes.

I'm always logged in to the website as an administrator, will nop cache the pages even if I'm logged in?
Is there some kind of cron job running to grab new template files or changed template files?

How can I force the system to always grab the newest template files and show me the changes I've made?

Best regards,
Wellington
9 years ago
Hi there,

I have some ideas which you can check.
If your changes are, for example in index file, there are one index.cshtml file in your theme, and one in Nop views. So if your changes are not in the right one (the one in your theme) no matter how many changes you have made, there will be no results in your live site. So check where do you make those changes of yours.
The situation in the css files is similar. You need to check is the path to the file correct.
Check in head.cshtml file (~Presentation\Nop.Web\Themes\your theme name\Views\Shared\Head.cshtml ),  the path to the particular document.  

To prevent from troubles, do not add or remove many things in your files before found why changes are not applying in your site.
9 years ago
I implemented the new css with a wrong path, so that's working right now.
The template files are also working but with some delay, sometimes some minutes after I uploaded the changed template file.
That's kind of annoying but right now I can deal with it.

But I'm working like you've said:
not changing more than 1,2 files at a time, better for bug control
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.