logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperqb  
#1 Posted : Monday, March 22, 2021 1:35:07 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Is there a way to purge everything that is currently cached from the Admin? I couldn't figure out why my images were not showing up on my product pages. After upgrading from AC7 => Gold R12 => AC 9.0.3, I had to update Thumbnail and Image URLs in the database. Once they were updated, changes were not reflected on the site. I restarted IIS and then they began to appear. I'm pretty sure it occurred because there is some caching going on and I updated information outside the flow of the application. It would be nice to have the option, similar to Rebuilding the Catalog URLs.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyartiwana25816656  
#2 Posted : Tuesday, March 23, 2021 6:03:14 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Hi,

Currently, there is no such option.
You will have to restart the IIS to invalidate the cache. Also, a change in the web.config file will restart the application and invalidate the cache.

Regards
Joe Payne2  
#3 Posted : Tuesday, March 23, 2021 2:29:24 PM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
If you're using CloudFlare, that can cause caching issues with image changes as well especially if the image file names have not changed but the image itself has changed. That's bit me a few times in the past.
sweeperqb  
#4 Posted : Tuesday, March 23, 2021 2:47:22 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
No Cloudflare yet. I think it is NHibernate's cache. I may make my 1st Attempt at a plug-in a cache purge 😆
sweeperqb  
#5 Posted : Wednesday, March 24, 2021 4:59:50 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Made my first AC9 plug-in to clear the NHibernate 2nd Level cache and it worked!!! :)

Kind of stumbled my way through the whole plug-in process:

  1. The post-build actions copied from the sample plug-ins were putting my .dll and .pdb files into /Debug and /Release subdirectories within the zip, which AC9 didn't seem to recognize. I updated the post-build actions to grab directly from the /bin/Release, then it put them in the root of the .zip file and it worked correctly.

  2. I added references to System.Web, System.Web.Mvc, Systeml.Web.Razor, ... and Intellisense is still not recognizing ViewBag and highlighting other things as errors even though they are not. Not sure how to fix that.


Joe Payne2  
#6 Posted : Thursday, March 25, 2021 3:56:47 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Quote:
I added references to System.Web, System.Web.Mvc, Systeml.Web.Razor, ... and Intellisense is still not recognizing ViewBag and highlighting other things as errors even though they are not. Not sure how to fix that.


That happens to me when there isn't a web.config in the /Views/ folder. Seems like VS needs project references for the C# but it also needs namespace references in a web.config for the razor side of the equation. Check how Able does it in /Views/web.config maybe that's the problem.
sweeperqb  
#7 Posted : Thursday, March 25, 2021 9:52:13 AM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
I have a web.config in the Views folder referencing all of the required assemblies, just like theirs. Actually, most of the Razor helpers in their samples have red squigglies as well. So not sure if my VS 2019 IDE is missing something? When I do development with the current .Net Core stuff it recognizes everything pulled in via NuGet. Maybe I need to install old MVC executables for the IDE to work right.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.