X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   css and js file path incorrecy after Clear templates/X-Cart cache (https://forum.x-cart.com/showthread.php?t=73630)

shaz 02-24-2016 06:47 PM

css and js file path incorrecy after Clear templates/X-Cart cache
 
We've come across an odd issue with a xc4.6.1 client site (there has been many devs work on this site in its history)

Whenever we 'Clear templates/X-Cart cache' the css and js file paths do not update and teh template still look for the .css and .js files previously cached and does not reference the new ones.

e.g.

Code:

<link rel="stylesheet" type="text/css" href="https://www.mysite.com/var/cache/1.d31caeb2a7e130d850d18586a21bec90.css" />
<script type="text/javascript" src="https://www.mysite.com/var/cache/1.3bcd76ddab735d3e79b203d91663ce94.js"></script>
<script type="text/javascript" src="skin/common_files/modules/Banner_System/js/jquery.cycle.all.js"></script>


This only affects the client front end and not admin template.

does not occur with var/templates_c, only var/cache.

I've checked the permissions, they are all fine. I've searched for hard coded css references and cannot find any... can anyone advise what I missing?

Thanks in advance!

xc4.6.1

cherie 02-25-2016 08:51 PM

Re: css and js file path incorrecy after Clear templates/X-Cart cache
 
Look at the changelog for 4.6.2 as there are some cache fixes that sound like they may pertain to you. Upgrading from that early version of 4.6 should be a priority. Lots of fixes.

shaz 02-25-2016 09:56 PM

Re: css and js file path incorrecy after Clear templates/X-Cart cache
 
Thanks for taking the time to reply Cherie :)
Makes sense that it would be a bug....

There are a heap of custom mods on this one... before we go and open more cans of worms.......... can anyone from Qualiteam confirm is the caching issue is due to the version 4.6.1 please?

cflsystems 02-26-2016 07:15 AM

Re: css and js file path incorrecy after Clear templates/X-Cart cache
 
Just upgrade to 4.6.5 - that way you stay within version and all 3rd party mods will still work without the need to upgrade them.

If this doesn't fix it then you can think about going further to 4.7.5

The other thing you can do is just remember to turn off speed up tools, clear cache, then turn them back on. This should force cart to use correct cached files.


All times are GMT -8. The time now is 11:32 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.