Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

css and js file path incorrecy after Clear templates/X-Cart cache

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-24-2016, 06:47 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default 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
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #2  
Old 02-25-2016, 08:51 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 02-25-2016, 09:56 PM
 
shaz shaz is offline
 

Senior Member
  
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 174
 

Default 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?
__________________
Shaz
X-Cart Developer
Sydney - Australia
Reply With Quote
  #4  
Old 02-26-2016, 07:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:30 AM.

   

 
X-Cart forums © 2001-2020