Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with cache


TimoMR2

Recommended Posts

Hello,

 

when i add a new product, it doesn?t apear in the shop, ie in "new products".

It only appears, if i press ctrl+F5.

 

BUT,

 

if i went to the shop from my mac and not from my pc, then the changes can be seen.

 

Where?s the prob?....i use IE6 on PC and IE5.2 on Mac....both Standard-Settings.

 

OSCommerce 2.2

 

Any idea??

 

Greets Timo

Link to comment
Share on other sites

"Clear your cache and restart Windows" is the first that comes to my mind.

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

Nice way to shop :)

 

You will actually have to edit the cache settings in your browser configuration.

 

For Internet Explorer I use 'On Every Start of Internet Explorer' (similar text, my browser is in German) found in Internet Options -> Temporary Internet Files.

 

For Mozilla I use 'Once per session' under Advanced -> Cache.

 

-Harald

:heart:, osCommerce

Link to comment
Share on other sites

I know it does not relate to the browser cache, but it does to cache settings within OSC.

 

It asks for cache settins to be set via the tmp file where I presume it stores the files, but how do you accomplish this on a shared server?

 

the only way I have managed to get this working is on my Win Test server where I put the tmp directory in the c: (drive).

 

how can this work on a shared Unix based server?

 

CC.

Link to comment
Share on other sites

how can this work on a shared Unix based server?

 

Quite simple. Make a directory somewhere in your webspace, chmod it to 777 to make sure the PHP-process can write to it (remember - the PHP process runs under the user of httpd, usually nobody or httpd - not your user name) and use that directory as your cache directory.

 

On a shared server NEVER use the /tmp directory or things will go terribly wrong when another user installs osCommerce and also uses /tmp ...

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

Jan Wrote:

Quite simple. Make a directory somewhere in your webspace, chmod it to 777 to make sure the PHP-process can write to it (remember - the PHP process runs under the user of httpd, usually nobody or httpd - not your user name) and use that directory as your cache directory.  

 

On a shared server NEVER use the /tmp directory or things will go terribly wrong when another user installs osCommerce and also uses /tmp ...

 

What if you can not get access to anything under httpd?

and if I can not use tmp, do I just set the correct directory to be used in admin?

Link to comment
Share on other sites

What if you can not get access to anything under httpd?

 

Did you try my suggestion? Chmodding to 777 will for sure give the httpd process access to the directory.

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

Erm... this is gonna sound real dumb.

 

But I have to ask... :D

 

I have got that working now, BUT.....

 

What exactly does it do anyway.

It has never worked for me, so I have never understood it.

 

If you could explain a little I would appreciate it.

 

CC.

Link to comment
Share on other sites

What exactly does it do anyway.

 

Define "it" ;-)

 

Take a look at the contents of the cache directory. Open the files with any text editor and you will see how "it" works.

 

Use The Sources, Luke ;-)

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...