Thread: Cache always empty
|New topic Reply||Page: 1|
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 />
02/01/10 9:27 PM
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?
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.
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?
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