Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Module Caching does not seem to be working since 4.9.0 Upgrade
Previous Previous
 
Next Next
New Post 10/5/2008 10:18 PM
Unresolved
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Module Caching does not seem to be working since 4.9.0 Upgrade 

Hi,

I use caching heavily in my Smart-Thinker modules, for example UserProfiles are cached.  I upgraded PokerDIY to DNN 4.9.0 yesterday and have noticed that the caching does not seem to be expiring. Running the PurgeCache Task manually does not clear it (are they not related?) and the only thing that does is to restart the application. For example, this user edited their profile and the changes are not reflected until the application is restarted.

This was working fine pre-4.9 and I could not find anything in the release notes that indicated a change in this behaviour. There are no dodgy Event Viewer messages.

 

Here is my code - can anyone shed any light on why this stopped working?


        public UserInfo GetUserFromCacheOrDB(int portalID, int userID, int profileCacheSeconds)
        {
            //check if caching must be used - check if this user record is in the cache, and use it
            string cacheKey = portalID.ToString() + "UserID" + userID.ToString();
            UserInfo user = null;

            if (profileCacheSeconds > 0)
            {
                user = (UserInfo)DataCache.GetCache(cacheKey);
            }

            if (user == null)
            {
                //not in cache or caching is not used, get from the DB
                user = new UserController().GetUser(portalID, userID);
                if (user != null && profileCacheSeconds > 0)
                {
                    //add it to the cache with an absolute expiry time
                    DataCache.SetCache(cacheKey, user, DateTime.Now.AddSeconds(profileCacheSeconds));
                }
            }
            return user;
        }

 


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 10/7/2008 7:57 PM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Module Caching does not seem to be working since 4.9.0 Upgrade 

*bump*  (this is critical...)


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 10/10/2008 3:54 PM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Module Caching does not seem to be working since 4.9.0 Upgrade 

Has anyone on DNN 4.9 noticed anything odd like this?


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 10/11/2008 2:52 AM
User is offline Sebastian Leupold
15228 posts
www.deutschnetnuke.de
1st Ranked












Re: Module Caching does not seem to be working since 4.9.0 Upgrade 
Modified By Sebastian Leupold  on 10/11/2008 4:54:35 AM)

Rodney,

I remember, that there have been changes regarding caching in DNN 4.9.0. I myself have not yet encountered issues after upgrading to DNN 4.9.0. Does this happen on heavily used sites only? Are you using DotNetNuke cache or .Net cache methods?


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 10/11/2008 4:38 AM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Module Caching does not seem to be working since 4.9.0 Upgrade 

Hi Sebastian,

Thanks for the reply - I use the DNN caching methods - I think it could be something to do with the timestamp as it does cache but only expires a few hours later instead of the 2 minutes that I specified.

The UsersOnline issue could be related - ever since the upgrade the users online table is populating and clearing but it's almost like it is out of synch - can't quite work it out!


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Module Caching does not seem to be working since 4.9.0 Upgrade
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP