menu_callback_cache 7.x-1.x-dev
Posted by pifantastic on March 7, 2011 at 9:48pm
| Download | Size | md5 hash |
|---|---|---|
| menu_callback_cache-7.x-1.x-dev.tar.gz | 8.55 KB | f504eecfe44c427d19ccecdf53eaac45 |
| menu_callback_cache-7.x-1.x-dev.zip | 9.21 KB | 1c587b7e065c9f04756a4c401c5bc08c |
Last updated: March 8, 2011 - 00:13
Release notes
Drupal 7 dev branch
menu_callback_cache 6.x-1.1
Posted by pifantastic on December 8, 2010 at 10:21pm
| Download | Size | md5 hash |
|---|---|---|
| menu_callback_cache-6.x-1.1.tar.gz | 8.55 KB | 3d2e6b0c4a46cb658e45a3551baa582f |
| menu_callback_cache-6.x-1.1.zip | 9.2 KB | 1e5617ee4f24aa43669b521e0f205e72 |
Last updated: December 24, 2010 - 23:22
Release notes
Using __FUNCTION__ to generate the cache ID would allow easy collisions. Use the page callback instead.
menu_callback_cache 6.x-1.0
Posted by pifantastic on December 6, 2010 at 10:38pm
| Download | Size | md5 hash |
|---|---|---|
| menu_callback_cache-6.x-1.0.tar.gz | 8.52 KB | 27c6d2beec8d751f9f2a594d05ec015d |
| menu_callback_cache-6.x-1.0.zip | 9.17 KB | e97131804a2e1978c4f4fbd7092e4a38 |
Last updated: December 24, 2010 - 23:22
Release notes
First release!
Enabling this module provides you with 3 new keys that you can define for your menu items in hook_menu:
- cache
-
One of the 3 following values (similar to the block module):
MENU_CALLBACK_CACHE_GLOBAL - Cache this menu callback globally for all users.
MENU_CALLBACK_CACHE_PER_ROLE - Cache this menu callback per user role.
MENU_CALLBACK_CACHE_PER_USER - Cache this menu callback per user. - cache max age (optional)
-
How long to keep the item in the cache before it becomes invalidated. If not specified, the default of 5 minutes is used.
- cache key callback (optional)
-
A callback that will generate the key to use for the cached callback. This is useful as it lets you define the key in a way that you can force invalidation early if you want to. You can also throw a DoNotCacheException within the callback to prevent the menu callback from caching. The cache key callback takes the exact same parameters as the menu item's page callback. If no cache key callback is specified, the cache key is automatically generated by using the page callback and hashing its parameters.
menu_callback_cache 6.x-1.x-dev
Posted by pifantastic on October 4, 2010 at 3:52am
| Download | Size | md5 hash |
|---|---|---|
| menu_callback_cache-6.x-1.x-dev.tar.gz | 8.55 KB | f9c544de634fa9b7223e084a22d0e078 |
| menu_callback_cache-6.x-1.x-dev.zip | 9.2 KB | 4d550da1695762fd188bd8e13672db05 |
Last updated: December 25, 2010 - 04:20
Release notes
This is the dev release of the 6.x-1.x branch.