Hi,
I'm new to modx and would like to get some help from you guys if possible. The header.php is located on template/src/chunks/header.php. However, whenever I click save and check the website, nothing happens. I already cleared the cache on my browser and it's still the same. Does caching have something to do with this? If yes, how many minutes do I have to wait for it updates automatically?
Thanks!
-
☆ A M B ☆
- 24,524 Posts
What exactly are you trying to edit? That path is not part of anything MODX that I'm familiar with.
If you are updating a static / hard coded file (not DB based) you will probably have to clear the manager cache after every update - not just the browser cache
I'm not positive about this, but the carts are probably using $_SESSION variables to store the information. Clearing the MODX cache shouldn't affect those or any pages, though it will slow down page loads the first time each page is visited (which will restore its cache).
If that file is not part of MODX, though, it probably isn't cached. Some browsers don't always clear their caches when you tell them to. Using Ctrl-F5 will usually force a reload, though.
It's always possible that you are editing the wrong file, or the wrong part of the right file.
Okay, thank you for your reply BobRay. I guess I should try that manager cache clearing.
Regarding the file, I double checked the codes and they are very similar when I use view source from the browser. Although there is a weird thing that I noticed on the template.
For the template part of the website, the header is included as [[$asHeader]] on the file. So I checked the chunk asHeader file and the code is very different from the live site. That's weird right?
Actually, I just checked the live site now and the header.php file that I edited yesterday has now changed. So after 1 day, the file changes? This must be cache.
- Robert