[4.0.1] Cache API question.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[4.0.1] Cache API question.

Nathan Keiter

I am getting a null return value for known existing names… what am I doing wrong? I tried flushing the relationships cache, no change.  In fact every relationship I try to pull returns null.

 

Relationship x = relationshipCache.getRelationshipByName( “name” );

 

Returns null.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/718a68fca54c4613b8fbe98d2991fb85%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: [4.0.1] Cache API question.

Nathan Keiter

I found that RelationshipFactory.getRelationshipByRelationTypeValue( “name” ) works…

 

Under the hood this checks the cache first and then the DB. I’m not seeing a cache fail in the log with that method..

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Wednesday, August 30, 2017 6:04 PM
To: [hidden email]
Subject: [dotcms] [4.0.1] Cache API question.

 

I am getting a null return value for known existing names… what am I doing wrong? I tried flushing the relationships cache, no change.  In fact every relationship I try to pull returns null.

 

Relationship x = relationshipCache.getRelationshipByName( “name” );

 

Returns null.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/718a68fca54c4613b8fbe98d2991fb85%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/b6f46dcb7cc64ae79c9bd675f4bd4e52%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: [4.0.1] Cache API question.

Nathan Keiter

I’ll use the Factory for now.  Still wondering why the cache isn’t working.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Wednesday, August 30, 2017 6:23 PM
To: [hidden email]
Subject: [dotcms] RE: [4.0.1] Cache API question.

 

I found that RelationshipFactory.getRelationshipByRelationTypeValue( “name” ) works…

 

Under the hood this checks the cache first and then the DB. I’m not seeing a cache fail in the log with that method..

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Wednesday, August 30, 2017 6:04 PM
To: [hidden email]
Subject: [dotcms] [4.0.1] Cache API question.

 

I am getting a null return value for known existing names… what am I doing wrong? I tried flushing the relationships cache, no change.  In fact every relationship I try to pull returns null.

 

Relationship x = relationshipCache.getRelationshipByName( “name” );

 

Returns null.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/718a68fca54c4613b8fbe98d2991fb85%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/b6f46dcb7cc64ae79c9bd675f4bd4e52%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/65ddaf4c23c045d799566a4c5600fd6d%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.