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.
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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 😆
|
|
|
|
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: - 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.
- 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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close