|
Twitter Feed
|
Found 1 of 135 records in table Wiki
Now Showing 1 of 1 Current Record: Cached_permissionsCached Permissions[Permalink]Cached PermissionsIntroductionWhen you insert a SQL query in your getPermissions function, this will slow down the app dramatically because this function is called by each query. To resolve this problem, it is better to use cached permissions in your /conf/ApplicationDelegate.php or table/table.php.ProcedureHere is an example :
Here, getPermissions() will run a db query on its first request, but subsequent requests will just load the cached value.
blog comments powered by Disqus
|