Project:Block Cache
Version:master
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

This seems like a funny question maybe, but I'm wanting a way to disable the user login cache block for admin who may not know better and enable it themselves. If I put -1 in the time does anyone know if that would effectively stop it from caching if they enable it?

Thanks.

Comments

#1

Status:active» fixed

Hi Caleb,

I don't know if that would work or not. This number basically just gets transferred to the cache_set() function, so it would do whatever it does there. My guess is that would cause it to refresh on every page request.

However, please note that this would be CONSIDERABLY less optimized than just enabling the original block. Each time the page is loaded the cache entry will be cleared and rebuilt in addition to the overhead of the original block calculations.

#2

Status:fixed» closed (fixed)