vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Administrative and Maintenance Tools - Clear Cache Scheduled Task by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=327063)

migratoria 02-07-2021 05:23 PM

That's right it doesn't work. Can anyone help and review this script for vb 5.6.4?

delicjous 02-07-2021 06:11 PM

Just put it to core/includes/cron (have no package here but should be the standard path for vb crons...) and look at any other cron for the path to use. It is not working because the path is wrong now.

migratoria 02-07-2021 06:20 PM

Posted in core/includes/cron/bop5_clearcache.php

In the options
Name file: .core/includes/cron/bop5_clearcache.php

If I click run now: It says Done but it doesn't actually work

delicjous 02-08-2021 03:07 AM

Ok, the code of this plugin is not the best but I did not check it before.

I created my own addon in 2018... that code work!
Replace everything in your file with:
PHP Code:

<?php if (!defined('VB_ENTRY')) die('Access denied.');

error_reporting(E_ALL & ~E_NOTICE);
    
vB_Cache::resetCache();
vB::getDatastore()->resetCache();

log_cron_action('Cache cleaned!'$nextitem1);
?>

That should work!

migratoria 02-08-2021 06:14 AM

Quote:

Originally Posted by delicjous (Post 2606137)
Ok, the code of this plugin is not the best but I did not check it before.

I created my own addon in 2018... that code work!
Replace everything in your file with:
PHP Code:

<?php if (!defined('VB_ENTRY')) die('Access denied.');

error_reporting(E_ALL & ~E_NOTICE);
    
vB_Cache::resetCache();
vB::getDatastore()->resetCache();

log_cron_action('Cache cleaned!'$nextitem1);
?>

That should work!

Thank you

Mr Peabody 02-14-2021 08:26 PM

Still not working for me. At wits end with this issue.

dmark101 09-30-2023 03:41 PM

I just tried this on vB 5.6.9 and it worked like a charm. I'll monitor it for the next couple of days to see if there are any hiccups.


All times are GMT. The time now is 04:23 AM.

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.01690 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_php_printable
  • (1)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
  • (7)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