vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Clear CMS Cache Cron (https://vborg.vbsupport.ru/showthread.php?t=246981)

reefland 07-20-2010 10:00 PM

Clear CMS Cache Cron
 
1 Attachment(s)
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

Quote:

Originally Posted by forexforum (Post 2087684)
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

Quote:

Originally Posted by reefland (Post 2073993)
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.

Quote:

Originally Posted by forexforum (Post 2088186)
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?


All times are GMT. The time now is 05:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01846 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete