Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 Stores on same host account cache problem


isl

Recommended Posts

Hi,

 

I am trying to setup 2 stores on the same hosting account, both of seperate domains. The first works fine and has been heavily modified so was copied to the other one, with all options in the config file amended for the 2nd domain.

 

The first site uses caching and everything works fine. The 2nd site has cachine switched off, and also has a different cache folder just in case. The host has fastcgi switched off as well.

 

When i add new products to the 1st site the new products also appear in the "New Products for June..." section on index.php page of the 2nd site (images are missing). The product then cant be found if clicked on as it doesnt exist in the products table.

 

This has to be some kind of cachine issue (the same happens on other machines) with oscommere or the host.

 

Is there anything i may have missed somewhere as this is driving me crazy :D

Link to comment
Share on other sites

yes, both configure files for both stores are setup so they are pointing to the different domains etc.

Are they pointing to seperate databases?

Link to comment
Share on other sites

Are they pointing to seperate databases?

 

Yes, both the configure files for the 2 stores point to different databases.

 

When the new products show up there is no mention of them at all in the 2nd database, which means it must be some kind of cache/session issue i guess?

 

The 2nd store is set to store cache and sessions in different locations, and have tried with cache on and off :(

Link to comment
Share on other sites

just did some quick testing.

 

I added a product to the main store, then went straight to the 2nd store and the product showed up in the "New products for..." section, although again it didnt exist when clicked on and image didnt exist.

 

So its not like the "new products for" section was gerated on the 1st store, and a cache or something of that section was left behind and used on the 2nd store. It appears on the 2nd even before the "new products for" section has ever been generated on the 1st store. Im very confused!

 

Does this suggest some kind of database issue? Is there anywhere else I need to amend to make sure they are using seperate databases/tables?

Link to comment
Share on other sites

SOLVED! :D:D:D

 

 

Checked everything again and realised that the index.php page had some modifications to it to include another php file to display some featured products, and in that included file there were some references to the database that hadnt been changed over which was obviously confusing the issue.

 

Many thanks for all your help guys, appreciate it :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...