Mango



Thread: Cache always empty

Created on: 02/01/10 05:32 PM

New topic Reply    Page: 1  

Replies: 4
df


df's Gravatar
Joined: 03/03/09
Posts: 2

02/01/10 5:32 PM

Posts are never added to the cache. These are the values at the top of the utilities/cache.cfc.
   
<cfset variables.items = structnew() />
<cfset variables.maxCacheTime = "300" />
<cfset variables.cacheTime = "30" />
<cfset variables.maxKeys = 100 />
<cfset variables.lastCleanup = now() />
<cfset variables.cleanupinterval = 5 />

Dave
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

02/01/10 9:27 PM

Hi Dave,

I am pretty sure the posts do get cached. You wouldn't see any entry in the Cache page of your admin if they weren't. Is the list empty in your install?

I am not sure what you mean with those default values in cache.cfc, can you explain?
Link | Top | Bottom
df


df's Gravatar
Joined: 03/03/09
Posts: 2

02/02/10 10:04 AM

When I look at several pages on the blog and then go into the admin and click on Cache no posts are listed. Clicking on the Posts option in the admin does show all the posts. Am I correct in assuming the viewing a post should add it to the cache list.
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

02/02/10 9:40 PM

Yes, viewing a post should add it to the cache. My feeling is that the cache is working, but it is the cache manager that is not able to show the posts. Maybe web services are somehow not working? Are you able to use the file uploader?
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

08/13/12 1:37 AM

we have a similar issue but related to the use of a reverse proxy leading to incorrect rewriting of webservices URL
I've added the following attributes to the cfcomponent tag of the file api/CacheService.cfc

<cfcomponent serviceaddress="http://SERVERNAME/api/CacheService.cfc">;

Regards
Link | Top | Bottom

New Post

Please login to post a response.