669 users online
Register
Log in
Shopping Cart
(0)
Home
Product
Overview
Features
Store demo
Screenshots
Showcase - live shops
Copyright Notice Removal
System Requirements
Roadmap
Contribute
Team Members
License
Downloads
Download nopCommerce
Extensions
Release Notes
Support
Documentation
Forums
Partners
Recommended Hosting
Solution Partners
Become a Partner
Community sponsorship program
My Account
Contacts
Tweet
Home
/
Forums
/
General
/
Development
/
Database cache?
Database cache?
Reply
jeroenvvl
Total Posts:
24
Karma:
120
Joined:
6/14/2009
PM
Posted:
2 years ago
Quote
I am developing an import program dat imports data into the database. When I want to get a brand new set of data, i run the following script
which deletes about everything :)
delete from nop_picture
delete from nop_category
delete from nop_manufacturer
delete from nop_product
delete from nop_productvariant
delete from nop_productvariantattributevalue
Unfortunately, when I run the website, it still shows the old products. I know of a workaround, by changing the connectionstring, and making the login fail, and then change it back to the way it was
Surely there must be an easyer way to achieve this....
By the way: adding a space to the connectionstrings.config and saving it also does the job
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Geocen
Total Posts:
2
Karma:
10
Joined:
6/16/2009
PM
Posted:
2 years ago
Quote
Did you try recycling the application pool? If you're on a hosted provider that doesnt allow you to do this directly, you can make a change to web.config like adding a space which should force a recycle. That may be what is happening when you add a space to the connectionsstrings.config file but I thought it was only web.config that had that behaviour.
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
a.m.
Total Posts:
6513
Karma:
44347
Joined:
10/22/2008
Location:
Russia
PM
Posted:
2 years ago
Quote
Go to admin area and click "clear cache" button
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Andrei Mazoulnitsyn,
LinkedIn - http://ru.linkedin.com/in/mazoulnitsyn
Twitter - http://twitter.com/#!/nopCommerce
Facebook community page - http://www.facebook.com/pages/NopCommerce/108282972527146
Google+ page - https://plus.google.com/100073150079669136049
jeroenvvl
Total Posts:
24
Karma:
120
Joined:
6/14/2009
PM
Posted:
2 years ago
Quote
I added a space to connectionstrings.config and it worked...
Thanks for the answers guys
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
kutbinahar
Total Posts:
35
Karma:
195
Joined:
10/4/2009
Location:
Kuwait
PM
Posted:
3 months ago
Quote
a.m. wrote:
Go to admin area and click "clear cache" button
hii
i am using sqldatasource where some records are updating database but i cannot see those records untill i click clear cache
so is there any another way ???
or i have to write the code which is on the clear cache link click after updating records??
0
Please
login or register
to vote for this post.
(click on this box to dismiss)