Log in

View Full Version : Administrative and Maintenance Tools - Clear CMS Cache Cron


reefland
07-20-2010, 10:00 PM
This was developed in order to deal with some of the wackiness that users are experiencing with the CMS Cache. Problems include things such as user comments not appearing and article previews being inaccurate after editing.

The only way to resolve these issues are to clear the CMS cache, which can be problematic when an admin is not available to do so and problems are being experienced. Or, use this super duper easy add-on that just cron's the activity which is setup in Scheduled Tasks.

Installation Instructions:
1. Download the attached file.
2. Upload the file to /includes/cron
3. Go to your admincp and browse to Scheduled Tasks and Add New Scheduled Task.
3A. Varname = Clear CMS Cache
3B. Description = Whatever you want
3C. Log Phrase = Whatever you want (cms cache cleared)
3D. Day of Week = *
3E. Day of Month = *
3F. Hour = *
3G. Minute = 0, 10, 20, 30, 40, 50
3H. Active = Yes
3I. Log Entries = whatever...
3J. Filename = ./includes/cron/clear_cms_cache_cron.php
3K. Product = vbulletin

Note that clearing the cache is not recommended from a server performance standpoint. However as long as the frequency that you clear it is not extreme (every minute), you will not notice any problems (at least I haven't even on shared hosting).

Bram H
07-22-2010, 09:39 PM
Hesitating to install. I am one of those people that suffers from this not clearing cache on the CMS side of things, and I am clueless why vB are not solving this. Has been reported over and over again since the day vB 4 came out.

Thanks for the modification though, top job! *Tagged*

reefland
07-24-2010, 07:28 PM
I have a good feeling that the next version should fix some of this. Had some testing and work done by the vb team on this exact issue.

forexforum
08-22-2010, 07:13 AM
Hi I understand this is for vBulletin CMS.

However, in your installation guide, it says:
3K. Product = vbulletin

Isn't it should be vBulletin CMS?

Also, can I set:

3F. Hour = 2
3G. Minute = *

Thanks.

K4GAP
08-23-2010, 07:23 AM
A wonderful idea. I'm just tagging right now as I'm leery of installing anything there may be some questions about. After a few more comments and debugging, I'll happily install.

Thanks for sharing

forexforum
08-23-2010, 08:16 AM
Hi I understand this is for vBulletin CMS.

However, in your installation guide, it says:
3K. Product = vbulletin

Isn't it should be vBulletin CMS?

Also, can I set:

3F. Hour = 2
3G. Minute = *

Thanks.

Sorry the php script you provided doesn't really work (cron at times never run).

However, actually vb 4.0.5 already addressed to this issue but they run only daily cron.

All you need to do is the change the daily to similar settings as above will do. Don't have to use this script.

VB script is called "CMS Daily Cleanup". Works for me. Cheers.

TheLastSuperman
08-23-2010, 08:23 AM
I have a good feeling that the next version should fix some of this. Had some testing and work done by the vb team on this exact issue.

Sorry the php script you provided doesn't really work (cron at times never run).

However, actually vb 4.0.5 already addressed to this issue but they run only daily cron.

All you need to do is the change the daily to similar settings as above will do. Don't have to use this script.

VB script is called "CMS Daily Cleanup". Works for me. Cheers.

I believe he addressed that above... Also note the version number this is compatible with via the mod info above, 4.0.4 so this along with some other mods work on older versions only whereas vB makes improvements along the way so naturally you would uninstall/remove upon upgrading.

BadgerDog
10-19-2010, 04:24 PM
I'm running v4.04pl1 .... :confused:

Will this work for me as I'm experiencing some wonkiness with articles on our vbCMS installation...

Regards,
Badger

Edit: What I meant was that when I run it, all I see is this:

Blog - Hourly Cleanup

Done

Max Paint
02-10-2011, 12:15 PM
Thank you very much!

|Jordan|
05-10-2011, 02:58 AM
I just bought VB4, Is this still an issue in 4.1.3? Is it still worth getting this modification?

sticky
01-10-2012, 11:56 PM
Not working on 4.1.10 and CMS daily cleanup does not seem to clear the cache.

Any other solution?

avitor
07-05-2013, 09:33 PM
Varname = Clear CMS Cache
is wrong bro
can you tell me what is the real varname ?
thankks