Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 17 Aug 2011, 01:08
ipscone ipscone is offline
Join Date: Jul 2002
Disable Content Cashing Problem

RE: vB CMS 4.1.5

I read someone else with the problem. It was titled "Solved" but I didn't see the solution. Then it was reported as a but.

I have the same problem and not sure how to fix it. I have a Widget for, that uses Direct PHP. It works perfectly, if I set "Disable Content Caching" to "Yes". But works one time, if I set it to "No" then requires waiting a refresh interval, before it works again. If I refresh before the interval is up, the execution fails.

The code is for a Featured Photo Widget, for integrating PhotoPost into vB CMS 4.1.5 Front Page.

I'm really not sure there is any point in showing the code, since I know it works when content caching is disabled. But people always ask. Here is the code.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Like I said, without "Disable Content Cashing" set to "Yes" the code doesn't work right.

It should display 4 photos, at the top of the Front Page. After 1 refresh, it displays 1 and the right page column drops and goes to the center. It's busted unless I disable content caching.

Is there a fix to this problem?

Last edited by ipscone; 17 Aug 2011 at 03:30.
Reply With Quote
Old 17 Aug 2011, 01:34
Reycer Reycer is offline
Join Date: Jul 2008
Real name: Mike

Does this solve your problem?
Reply With Quote
Old 17 Aug 2011, 03:07
ipscone ipscone is offline
Join Date: Jul 2002
No, it doesn't help. That fix was for a previous version. I can't find that code anywhere in the area of line 166, for the first part. And the second part already has the conditional.

When I set refresh to 0, I still have the problem.

In fact, both of those links suggest the problem is still present.


Very strange. After looking at the code, it looked like the fixes above, are already in the 4.1.5 release. So, I went back to the widget and set the refresh to 0, again. Still had the same problem. Played around with it for a while, clearing the CMS cashe and trying a few things and all of a sudden it started working.

Then, I tried to repeat the problem. Set the cache refresh to 1, and the problem returned. Set it back to 0 and still had the problem. Then, I cleared the CMS cache again and it started working. It looks like I just had to perform a manual clear CMS cashe, one time after setting the refresh to 0 and it works.

So, for now, it looks like the problem has gone away. I'll post again, if it returns.

Last edited by ipscone; 17 Aug 2011 at 03:31.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 23:49.

Layout Options | Width: Wide Color: