@extends(main) @args String cacheTime

Test Cache4 with session data

Note, zone A controller is marked with @@Cache4("cron.testCache4"); zone B controller is marked with @@Cache4(useSessionData = true, value = "cron.testCache4").

As a result zone B is sensitive to session data changes, e.g. user login/logout will cause cache invalidate, while zone A is only sensitive to request itself, user logout will not cause the content change in zone A

cache time to

By clicking you set a username into the session data. You should be able to see "now is: xxxx" message in both iframes

By clicking you clean the session data, and you should see a login screen is zone b, but zone a still remain unchanged

By clicking you refresh the current page and watch the change in the two iframes

By clicking you reset server status and clear all caches


Zone A Zone B