![]() |
Forum vB Cache Question How is the cache working? For example i have this code PHP Code: $cacheevents = array( 'output.deleted', 'output.edited' ); if ($data = vB_Cache::instance()->read('output')) { vB_Cache::instance()->event($cacheevents); echo 'data: ' . $data .'data deleted '; #vB_Cache::instance()->cleanNow(); } else { $data = TIMENOW + 100; echo $data; vB_Cache::instance()->write('output', $data, false, $cacheevents); vB_Cache::instance()->cleanNow(); } If i don't have vB_Cache::instance()->cleanNow(); after the event() nothing happens. Is this ok so? Because you have often the event call without the cleanNow method called. Also if i don't have it after the write Method the cache events aren't stored (the cacheevent table is empty)! So do we need to call cleanNow() everywhere? |
| الساعة الآن 06:47 AM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir